Download the PHP package cekurte/silex-translation-provider without Composer
On this page you can find all versions of the php package cekurte/silex-translation-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package silex-translation-provider
SilexTranslationProvider
- A simple silex service provider (with all methods covered by php unit tests) that adds the Yaml files to the Silex\Provider\TranslationServiceProvider to increase the power of your application, contribute with this project!
Installation
The package is available on Packagist. The source files is PSR-2 compatible. Autoloading is PSR-4 compatible.
Documentation
To use this library you need register the Cekurte\Silex\Translation\Provider\TranslationServiceProvider.
And create in your-translation-directory/ the translation yaml files, note that the filename must be the locale name. Then, the following filenames are valid:
- en.yaml
- en.yml
- es.yaml
- es.yml
- fr.yaml
- fr.yml
- ...
If you liked of this library, give me a star =).
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Run the tests, adding new ones for your own code if necessary (
vendor/bin/phpunit
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
All versions of silex-translation-provider with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
silex/silex Version ~1.3
symfony/translation Version ~2.7|~3.0
symfony/config Version ~2.7|~3.0
symfony/yaml Version ~2.7|~3.0
silex/silex Version ~1.3
symfony/translation Version ~2.7|~3.0
symfony/config Version ~2.7|~3.0
symfony/yaml Version ~2.7|~3.0
The package cekurte/silex-translation-provider contains the following files
Loading the files please wait ....