The recommended way to install maikay/zf2-poeditor-php-client
is through composer by adding dependency to your composer.json
:
{
"require": {
"maikay/zf2-poeditor-php-client": "0.3.*"
}
}
PhpClientPoeditor
to your Application ModulesTo run the configured strategies
cd path/to/my/zf2-project
php public/index.php php-client-poeditor build
php-client-poeditor build is configured here
ServiceManagerKey | Description |
---|---|
PhpClientPoeditor\Strategy\OneToOneStrategy | saved the obtained content 1:1 POEditor - SupportedFormats |
PhpClientPoeditor\Strategy\PhpArrayStrategy | saved the obtained content to use Zend/I18n/Translator/Loader/PhpArray.php |
PhpClientPoeditor\Strategy\JsonKeyValueStrategy | saved the obtained content like PhpArrayStrategy - just in json format |
To get your own Strategy, just create a Strategy by implementing
PhpClientPoeditor\Strategy\StrategyInterface
.