rezozero / xilofone-plugin
Installs: 1 621
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: >=8.0
- composer-plugin-api: ^2.0
- composer/composer: >=2.0
- guzzlehttp/guzzle: ^7.8
- guzzlehttp/psr7: *
- php-http/discovery: ^1.19
- php-http/guzzle7-adapter: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- symfony/dotenv: >=5.4
README
Fetch XLIFF translations files from xilofone.rezo-zero.com and update them in your PHP project.
Plugin will download translations files each time you run composer update
. Or you can run it manually with:
composer xilofone:fetch-files
Install
composer require --dev rezozero/xilofone-plugin
Configuration
Add the following configuration in your composer.json
file:
{ "extra": { "xilofone": { "file_id": "30", "destination_folder": "translations" } }, "config": { "allow-plugins": { "rezozero/xilofone-plugin": true } } }
Then add your secret credentials in your project .env.local
file:
XILOFONE_PLUGIN_USERNAME=username XILOFONE_PLUGIN_PASSWORD=password
Multiple files
You can fetch multiple files by adding them in your composer.json
file:
{ "extra": { "xilofone": { "files": [ { "file_id": "30", "destination_folder": "translations" }, { "file_id": "31", "destination_folder": "translations" } ] } } }