All Projects → loco → loco-php-sdk

loco / loco-php-sdk

Licence: MIT License
Loco SDK for PHP including REST API client

Programming Languages

PHP
23972 projects - #3 most used programming language
Smarty
1635 projects

Projects that are alternatives of or similar to loco-php-sdk

inlang
Open Source Localization Solution for Software.
Stars: ✭ 160 (+1233.33%)
Mutual labels:  translation, localization, localisation, translation-management
wp-loco
MIRROR of the official Loco Wordpress plugin "Loco Translate"
Stars: ✭ 35 (+191.67%)
Mutual labels:  localization, localisation, translation-management
Localisation
Repository for translation and discussion for OpenRCT2.
Stars: ✭ 49 (+308.33%)
Mutual labels:  translation, localization, localisation
Traduora
Ever® Traduora - Open-Source Translation Management Platform
Stars: ✭ 1,580 (+13066.67%)
Mutual labels:  translation, localization, translation-management
flutter-internationalization
Flutter Internationalization by Using JSON Files
Stars: ✭ 18 (+50%)
Mutual labels:  translation, localization
mobility-actiontext
Translate Rails Action Text rich text with Mobility.
Stars: ✭ 27 (+125%)
Mutual labels:  translation, localization
lost-in-translation
Uncover missing translations and localization strings in Laravel applications.
Stars: ✭ 32 (+166.67%)
Mutual labels:  translation, localization
i18n.cr
Internationalization API ( i18n ) for Crystal!
Stars: ✭ 36 (+200%)
Mutual labels:  translation, localization
local.js
Localization script for web sites which has the multiple languages.
Stars: ✭ 15 (+25%)
Mutual labels:  localization, localisation
i18n
internationalize projects to Arabic
Stars: ✭ 67 (+458.33%)
Mutual labels:  translation, localization
Translatio
Super lightweight library that helps you to localize strings, even directly in storyboards!
Stars: ✭ 19 (+58.33%)
Mutual labels:  translation, localization
fluent-vue
Internationalization plugin for Vue.js
Stars: ✭ 137 (+1041.67%)
Mutual labels:  translation, localization
poeditor-cli
POEditor CLI
Stars: ✭ 29 (+141.67%)
Mutual labels:  localization, localisation
awesome-i18n
🌍 A curated list of i18n resources for all kind of languages and frameworks
Stars: ✭ 205 (+1608.33%)
Mutual labels:  localization, translation-management
translation
👅 Translations (symfony/translation) to Nette Framework (@nette)
Stars: ✭ 55 (+358.33%)
Mutual labels:  translation, localization
LMPHP
Multi-language management and support on the site.
Stars: ✭ 19 (+58.33%)
Mutual labels:  translation, translation-management
plate
Internationalization library for Python
Stars: ✭ 31 (+158.33%)
Mutual labels:  translation, localization
Counterpart
A translation and localization library for Node.js and the browser.
Stars: ✭ 239 (+1891.67%)
Mutual labels:  translation, localization
update localization
A Python Script that helps dealing with localizations in Xcode. It keeps track of Items that are already translated and doesnt replace them like genstrings does but appends new items. Moreover it is possible to specify extensions of files that should be scanned and to specify ignore patterns for Files that should be ignored
Stars: ✭ 39 (+225%)
Mutual labels:  localization, localisation
Translate helper
A Java application to help to translate the localisation files of the Paradox games.
Stars: ✭ 23 (+91.67%)
Mutual labels:  translation, localisation

Loco SDK for PHP

Installation

Installation is via Composer.

Add the latest stable version of loco/loco to your project's composer.json file as follows:

"require": {
  "loco/loco": "^2.0"
}

REST API Client

The SDK includes a REST client for the Loco API.

Client usage

The client is built on Guzzle. Basic usage is to construct with your API key and call the endpoint methods directly. The following example simply verifies your credentials:

$client = Loco\Http\ApiClient::factory(['key' => 'your_api_key']);
$result = $client->authVerify();
printf("Authenticated as '%s'\n", $result['user']['name']);

See the example directory for more.

Advanced options

Additionally the ApiClient::factory method can take any arguments accepted by Guzzle's client constructor. See Request Options and Handlers and Middleware for full details.

Command Line Client

A Console interface supporting all methods of the Loco API is at bin/console. Just run it to see all the available options.

The console reads from config.json, but you can override your API key from the command line. Run the following to verify your credentials:

bin/console loco:auth:verify -v -k <your_api_key> 

Documentation

Breaking changes in v2.0

Updating from Guzzle 3 to Guzzle 6 brought some necessary breaking changes with it. If you're upgrading from 1.0.18, please note the following:

  • The structure of config.json has changed. Note in particular a single root object containing your values as per the example config.
  • The version number of the SDK is no longer synced to the version of the API. Each release will however be built against the latest version of the live service.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].