Skip to content
Nav

Configuration

composer require langsys/langsys-php
Packagist version Monthly downloads License PHP 7.4+
VariableRequiredDefaultDescription
LANGSYS_API_KEYYes—Your Langsys API key
LANGSYS_PROJECT_IDYes—Your project UUID
LANGSYS_API_URLNohttps://api.langsys.dev/apiAPI base URL
LANGSYS_CACHE_DRIVERNofileCache driver: file, redis, or none
LANGSYS_CACHE_PATHNoSystem temp dirDirectory for file cache
LANGSYS_CACHE_TTLNo3600Cache TTL in seconds
LANGSYS_BASE_URLNoAuto-detectBase URL for resolving relative URLs in content blocks
LANGSYS_LOG_PATHNo—Path to log file (logging disabled if not set)
LANGSYS_LOG_LEVELNoinfoMinimum log level: debug, info, warning, error
$client = new Client(
'your-api-key', // or null to use env
'your-project-id', // or null to use env
[
'api_url' => 'https://api.langsys.dev/api',
'cache_driver' => 'file',
'cache_path' => '/tmp/langsys-cache',
'cache_ttl' => 3600,
'cache_clear' => false,
'base_url' => 'https://example.com',
'log_path' => '/var/log/langsys.log',
'log_level' => 'info',
]
);
Feedback