Skip to content
Nav

Configuration

composer require langsys/langsys-php-laravel
Packagist version Monthly downloads License PHP 8.1+ Laravel 10 / 11 / 12

See config/langsys.php: credentials (LANGSYS_API_KEY, LANGSYS_PROJECT_ID, LANGSYS_API_URL), catalog cache (Laravel store/prefix/TTL), locale-detection sources and persistence, and auto_flush.

Bind a fake client so tests never hit the API:

$this->app->instance(\Langsys\SDK\Client::class, $yourFakeClient);

This package’s own suite shows a complete FakeClient pattern in tests/Fakes/FakeClient.php. Tests are excluded from the released archive, so read it in the repository rather than under vendor/.

Feedback