Thank you for your interest in contributing. Please read this guide before submitting issues or pull requests.
By participating in this project, you agree to abide by the Code of Conduct.
Requirements:
- PHP 8.1 or higher.
- Composer 2.x.
Setup:
git clone https://github.com/php-forge/<package>.git
cd <package>
composer install
composer testAll PHP code must follow these standards:
- PER 3.0 + PSR-12 coding style.
declare(strict_types=1)in every PHP file.- Strong typing: use type declarations for parameters, return types, and properties.
- Use php-forge/coding-standard for automated style checks.
- All tests use PHPUnit 10+.
- Target 100% code coverage for new code.
- Run the test suite before submitting a pull request:
composer test- Fork the repository and create a feature branch from
main. - Make your changes in small, focused commits.
- Use Conventional Commits for commit messages.
- One logical change per pull request.
- Ensure all tests pass and coding standards are met.
- Open a pull request against
mainwith a clear description of the change.
- Bug reports: Use the Bug Report template.
- Feature requests: Use the Feature Request template.
Do not open public issues for security vulnerabilities. See SECURITY.md for reporting instructions.