EFL
Development

Contributing

How to contribute to the Imoli EFL Leasing PHP SDK.

Contribution guidelines

When contributing to the SDK, please follow these general rules:

  • Write all code, comments and documentation in English (except for proper names such as “EFL Leasing”).
  • Follow PSR-12 coding style.
  • Use strict types in all PHP files (declare(strict_types=1);).
  • Prefer clear, explicit types and avoid using mixed unless strictly necessary.

Development workflow

  1. Fork and clone the repository.
  2. Install dependencies:
    composer install
    
  3. Make your changes in a feature branch.
  4. Run tests and static analysis before opening a pull request:
    composer test
    composer phpstan
    composer cs-check
    
  5. Where possible, add or update tests to cover your changes.

Code style

Use the provided PHP-CS-Fixer configuration:

composer cs-fix

Run this command before committing to ensure consistent formatting.

Commit messages

  • Use clear, descriptive commit messages in English.
  • Prefer conventional commit prefixes such as feat:, fix:, docs:, refactor:, test:, chore:.