Laravel & PHP packages
Open-source Composer packages we publish under langsys/*. The translation SDKs integrate Langsys into a PHP or Laravel app. The toolkit packages were extracted from the Langsys API itself — they work in any Laravel app, with no Langsys account required.
Each package page is the same material as the GitHub README, laid out for reading here: install, the everyday API, the sharp edges, and links back to Packagist and source.
Translation SDKs
Section titled “Translation SDKs”The phrase in your code is both the lookup key and the base-language default — no keys file, no extraction step. The Laravel package is a thin wrapper over the PHP SDK.
Laravel SDK
Service provider, @t Blade directive, locale middleware, Livewire support, and Inertia SSR seeding over the PHP SDK.
- @t Blade directive
- t() helper
- Livewire
- Inertia SSR
PHP SDK
Framework-agnostic client for the Langsys Translation API — phrase lookup, ICU interpolation, catalog caching, and full-page HTML translation.
- translate()
- translatePage()
- ICU plurals
- Content blocks
Want a walkthrough with a demo app? The Laravel Learning Center page is the tutorial version of the Laravel SDK.
Laravel toolkit
Section titled “Laravel toolkit”Standalone packages. Install one, or several — they compose, they don’t require each other (Access Guard and API Keys pair when both are present).
Access Guard
Entity-scoped RBAC: users hold roles within orgs, projects, or teams. API keys are first-class authorizable subjects.
- Entity-scoped roles
- API-key subjects
- Gate integration
- Wildcards
API Keys
Standalone API-key authentication: SHA-256 hashed keys, read/write scopes, per-key permissions, and drop-in middleware.
- Hashed-at-rest
- read / write / ip_write
- Permissions
- Lifecycle events
Request Query Cache
Per-request Eloquent deduplication (firstCached / getCached) plus idempotent HTTP responses via middleware.
- firstCached()
- getCached()
- Idempotency-Key
- Octane-safe
OpenAPI Docs Generator
Generate OpenAPI 3.x from Spatie Laravel Data DTOs — no intermediate annotation files, no UI bundling.
- DTO reflection
- Filtered specs
- Error schemas
- Thunder Client