Thank you for considering contributing to Laravel Clean Architecture! We welcome contributions from everyone.
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/laravel-clean-architecture.git - Create a new branch:
git checkout -b feature/your-feature-name - Install dependencies:
composer install
We maintain high code quality standards using several tools:
# Check code style
composer format-test
# Fix code style
composer format# Run static analysis
composer analyse# Run all tests
composer test
# Run tests with coverage
composer test-coverage# Run all quality checks (formatting, analysis, tests)
composer quality- Follow PSR-12 coding standards
- Use Laravel Pint for code formatting
- Write meaningful commit messages
- Add tests for new features
- Update documentation when needed
- Write tests using PEST's modern syntax
- Use descriptive test names with
it('does something', function() {}) - Group related tests using
describe()blocks when appropriate - Use PEST's expectation API:
expect($value)->toBe($expected)
- Ensure all tests pass (
composer test) - Ensure code style is correct (
composer format-test) - Ensure static analysis passes (
composer analyse) - Update the README if needed
- Submit your pull request
- Write tests for any new functionality using PEST
- Ensure all existing tests continue to pass
- Aim for high test coverage
- Use PEST's fluent expectation syntax
- Update README.md if you change functionality
- Add PHPDoc comments to new methods
- Update CHANGELOG.md for significant changes
If you have any questions, please open an issue or start a discussion.
Thank you for contributing!