Thanks for considering a contribution. Bug reports, fixes, docs improvements, and features are all welcome.
git clone git@github.com:<your-fork>/ApiPlatformTranslationBundle.git
cd ApiPlatformTranslationBundle
composer installPHP 8.2 or newer is required. Tools are installed to bin/.
All four must pass before a pull request can be merged (CI enforces them):
bin/phpunit # test suite (pure unit tests, no services needed)
bin/phpstan analyse # static analysis, level 6, zero errors
bin/php-cs-fixer fix # code style (@Symfony + declare_strict_types)
composer validate --strictNew logic ships with tests. Tests use testCamelCase naming and data providers.
- Target
master. Bug fixes may be backported to the latest1.xrelease branch by the maintainers. - One logical change per PR; don't mix refactoring with features.
- Fill in the PR template honestly, in particular the BC-breaks question:
public method signatures, service IDs, the
translationsserializer group, thetranslation.groupsfilter id, and?locale=behavior are all public API. A BC break requires an entry in the currentUPGRADE-X.Y.mdin the same PR. - Add a line to the Unreleased section of
CHANGELOG.md.
Open an issue using the templates. For security vulnerabilities do NOT open a public issue; see SECURITY.md.