Base extensions and components.
This package helps you to deal with regions with different languages, currencies and countries. It could be helpful even if you have single region project.
The best way to install 68publishers/application is using Composer:
composer require 68publishers/application
and now you can enable the Environment extension using your neon config
extensions: environment: SixtyEightPublishers\Application\DI\EnvironmentExtension
environment: profile: europe: language: [sk_SK, en_GB, de_DE, pl_PL] currency: [EUR, PLZ, GBP] country: [SK, GB, DE, PL] north_america: language: en_US currency: USD country: US domain: [www.example.com, example.com] # disable: yes default: # If the default profile doesn't exists, the first profile is taken as default language: cs_CZ currency: CZK country: CZ
Enables and disables Tracy debugger bar panel for better debugging
environment: debugger: yes
This feature provides automatic evaluation of the locale parameter for
Kdyby\Translation based on profile settings in the extension.
Also if you change language via method
\SixtyEightPublishers\Application\Environment\ActiveProfile::changeLanguage(), locale in Translator is changed too.
environment: translations: yes
- 1 PR per feature
- PR with tests are more likely to be merged
- tests and coding standard must pass
vendor/bin/tester ./tests -s vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run