Download the PHP package imponeer/symfony-translations-constants-loader without Composer
On this page you can find all versions of the php package imponeer/symfony-translations-constants-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imponeer/symfony-translations-constants-loader
More information about imponeer/symfony-translations-constants-loader
Files in imponeer/symfony-translations-constants-loader
Package symfony-translations-constants-loader
Short Description symfony/translation extension to load PHP files that are defined all translations as constants
License MIT
Informations about the package symfony-translations-constants-loader
Symfony Translations Constants Loader
Extension for symfony/translation package to load translations defined as constants list in PHP file.
Installation
To install and use this package, we recommend to use Composer:
Otherwise you need to include manualy files from src/
directory.
Usage Example
1. Create a file with define()
constants:
💡 You can create separate files for other locales, such as
translations/fr/messages.php
.
2. Load the constants using the PHPFileLoader:
Development
Code Style
This project follows the PSR-12 coding standard. To check your code for style issues:
To automatically fix most coding standards issues:
Testing
To run the test suite, execute:
This will run all tests in the tests/
directory.
Static Analysis
This project uses PHPStan for static code analysis at level 5. PHPStan helps detect bugs and potential issues without running the code.
To run the static analysis:
The analysis checks both the src/
and tests/
directories. Configuration can be found in the phpstan.neon
file.
How to contribute?
If you want to add some functionality or fix bugs, you can fork, change and create pull request. If you not sure how this works, try read GitHub documentation about git.
Please make sure your code follows the PSR-12 coding standard by running the code style checks before submitting a pull request.
If you found any bug or have some questions, use issues tab and write there your questions.
All versions of symfony-translations-constants-loader with dependencies
ext-json Version *
ext-mbstring Version *
ext-pcre Version *
symfony/translation Version ^7.0