maikay / zf2-poeditor-php-client
This package is abandoned and no longer maintained.
No replacement package was suggested.
API Client for https://poeditor.com
0.3.1
2016-07-05 06:32 UTC
Requires
- php: >=5.4
- ext-curl: *
- zendframework/zendframework: ~2.4
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.3.*
README
Installation
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.*" } }
Requirements
- POEditor Account with API Access (POEditor - pricing)
Configuration
- add
PhpClientPoeditor
to your Application Modules - copy php-client-poeditor.global.php.dist to your config autoloader folder and remove .dist in filename
- update your api_token and project_id in the configuration (you can find this informations here)
Usage
To 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
Strategies
Existing Strategies
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 |
Write your own Strategy
To get your own Strategy, just create a Strategy by implementing
PhpClientPoeditor\Strategy\StrategyInterface
.