Jev directory
CommunityJev Repos & SDKs
TypeSafe Laravel SDK
Laravel-native SDK for the TypeSafe (Jev / System One) API, exposing config, a service provider, a TypeSafe facade, Http::pool concurrency, retry policies, and typed response DTO hydration for PHP 8.3+ and Laravel 12 and 13.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- Requires PHP 8.3+ and Laravel 12 or 13; installed with composer require doekos/typesafe-laravel-sdk.
- Ships Noul, Choice, and Score question builders, and accepts raw arrays for question types it does not model.
- RetryPolicy is an immutable value object in seconds whose defaults match the official Python and JS SDKs.
- TypeSafe::pool() sends many systemOne requests over Http::pool, returning a response or TypeSafeException per key.
- Passing responseModel hydrates a typed DTO; a missing or mismatched parameter raises ResponseValidationException.
Questions about this entry
Short answers drawn from the linked project or page.
Run composer require doekos/typesafe-laravel-sdk. The service provider and TypeSafe facade are auto-discovered. Publish the config with php artisan vendor:publish --tag=typesafe-config if you want to change defaults.
The package requires PHP 8.3 or higher and targets Laravel 12 and 13. It is distributed on Packagist under the name doekos/typesafe-laravel-sdk.
Set TYPESAFE_API_KEY in your .env file, or set api_key in config/typesafe.php. The key is resolved lazily and the SDK errors on first use if it is missing.
RetryPolicy defaults to maxRetries 2, backoffInitial 0.5 seconds, backoffMax 5.0 seconds, jitter 0.25, and retries on 408, 429, and 5xx. Delay honours retry-after-ms then Retry-After up to 60 seconds, with a 30 second total budget per call.
Yes. TypeSafe::pool() sends many systemOne requests over Http::pool and never throws per item: each keyed result is a decoded response or a TypeSafeException, and retries happen in rounds.
Pass a class name as responseModel. Constructor parameters are matched by question name to typed answers, and model, usage, and requestId are filled when declared. A missing required parameter or a type mismatch raises ResponseValidationException.
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.