Download the PHP package nicmart/getlocalization without Composer
On this page you can find all versions of the php package nicmart/getlocalization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nicmart/getlocalization
More information about nicmart/getlocalization
Files in nicmart/getlocalization
Package getlocalization
Short Description A simple php client for GetLocalization
License MIT
Informations about the package getlocalization
GetLocalization
GetLocalization is a simple php client for the GetLocalization File Management api.
Install
The best way to install GetLocalization is through composer.
Just create a composer.json file for your project:
Then you can run these two commands to install it:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
or simply run composer install
if you have have already installed the composer globally.
Then you can include the autoloader, and you will have access to the library classes:
Initialization
All you have to do is to instantiate a new Client object, passing to its constructor your GetLocalization username and password and the name of your project:
Api calls
This library offers an one-to-one mapping with the GetLocalization File Management API. And that's all. Managing merging of your local files with GetLocalization ones is up to you.
Managing master files
Create a new master file
Update a master file
Be careful here to pass a file path of a file that has the same name of the master file you want to update.
List all master files
Managing Translations
Get a translation
Update a translation
Get a list of all translations
Not implemented yet
Get a zipped archive of all translations
CREDITS
- This library has been written for Comperio srl to manage community driven localizations of ClavisNG and DiscoveryNG
- We use the Guzzle Http framework for sending and recieve http requests.
Tests
$ phpunit
License
MIT, see LICENSE.