maikay / zf2-poeditor-php-client
API Client for https://poeditor.com
Installs: 6 621
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
pkg:composer/maikay/zf2-poeditor-php-client
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
PhpClientPoeditorto 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.