First off, thank you for considering contributing to Progressable!
- Clone the repository:
git clone https://github.com/verseles/progressable.git
cd progressable- Install dependencies:
composer install- Run tests to make sure everything works:
composer testThis project uses several tools to maintain code quality:
composer test# Check for style issues
composer lint:test
# Fix style issues automatically
composer lintcomposer analyse- Fork the repository and create your branch from
main - Make your changes
- Ensure all tests pass:
composer test - Ensure code style is correct:
composer lint:test - Ensure static analysis passes:
composer analyse - Update documentation if needed (README.md, CHANGELOG.md)
- Submit your pull request
- Follow PSR-12 coding standards (enforced by Laravel Pint)
- Write tests for new features
- Keep methods focused and small
- Use descriptive variable and method names
- Add PHPDoc blocks for public methods
When adding new features:
- Add the feature implementation in
src/Progressable.php - Add tests in
tests/ProgressableTest.php - Update
README.mdwith usage examples - Add entry to
CHANGELOG.mdunder[Unreleased]
When reporting bugs, please include:
- PHP version
- Laravel version (if applicable)
- Progressable version
- Steps to reproduce
- Expected behavior
- Actual behavior
Feel free to open an issue for any questions about contributing.