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
mixedunless strictly necessary.
Development workflow
- Fork and clone the repository.
- Install dependencies:
composer install - Make your changes in a feature branch.
- Run tests and static analysis before opening a pull request:
composer test composer phpstan composer cs-check - 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:.