Install
composer require langsys/langsys-php- Download or clone the repository
- Include the autoloader:
<?phprequire_once '/path/to/langsys-php/autoload.php';
use Langsys\SDK\Client;
$client = new Client('your-api-key', 'your-project-id');Quick start
Section titled “Quick start”<?phprequire 'vendor/autoload.php';
use Langsys\SDK\Client;
$client = new Client(); // uses LANGSYS_API_KEY + LANGSYS_PROJECT_ID
$translations = $client->getTranslations('es-es');
echo $client->translate('Home', 'es-es', 'UI'); // "Inicio"Credentials and cache options: Configuration.