Download the PHP package gilads-otiannoh254/inertia-protocol without Composer
On this page you can find all versions of the php package gilads-otiannoh254/inertia-protocol. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gilads-otiannoh254/inertia-protocol
More information about gilads-otiannoh254/inertia-protocol
Files in gilads-otiannoh254/inertia-protocol
Download gilads-otiannoh254/inertia-protocol
More information about gilads-otiannoh254/inertia-protocol
Files in gilads-otiannoh254/inertia-protocol
Vendor gilads-otiannoh254
Package inertia-protocol
Short Description Framework-agnostic Inertia.js Wire Protocol Engine and Response Builder for PHP.
License MIT
Package inertia-protocol
Short Description Framework-agnostic Inertia.js Wire Protocol Engine and Response Builder for PHP.
License MIT
Please rate this library. Is it a good library?
Informations about the package inertia-protocol
Inertia.js Wire Protocol Engine for PHP
A framework-agnostic, zero-dependency PHP 8.2+ library implementing the complete Inertia.js Wire Protocol specification.
Designed to power any PHP framework adapter (CodeIgniter 4, Symfony, Slim, RoadRunner, Swoole, Workerman, Laravel, or bespoke architectures) with 100% spec-compliant Inertia responses.
Features
- 🚀 Zero Dependencies: Pure modern PHP 8.2+ with strict typing.
- 📦 Complete Page Object Schema: Strict compliance with
component,props(with always-presenterrors: {}),url,version, and conditional metadata. - 🔄 Advanced Prop Evaluation Model:
Inertia::always(...): Always resolved across full visits and partial reloads.Inertia::lazy(...): Skipped on full visits, resolved only on partial reloads.Inertia::defer(...): Grouped deferred props for follow-up loading with automatic rescue support.Inertia::once(...): Evaluated once and cached client-side with optional expiration timestamps.Inertia::merge(...),Inertia::prepend(...),Inertia::deepMerge(...): Client-side prop merging withmatchPropsOnidentification keys.Inertia::scroll(...): Infinite scroll pagination cursor and metadata.
- ⚡ Automated Protocol Handlers:
- Asset Versioning: Automatically returns
409 ConflictwithX-Inertia-LocationandX-Inertia-Versionon GET mismatches. - External Visits:
Inertia::location($url)generates409 ConflictwithX-Inertia-Location. - Fragment Redirects:
Inertia::redirectWithFragment($url)generates409 ConflictwithX-Inertia-Redirect. - Precognition: Returns
204 No ContentwithPrecognition: trueandVary: Precognition. - Partial Reload Filtering: Respects
X-Inertia-Partial-Data,X-Inertia-Partial-Except,X-Inertia-Reset, andX-Inertia-Except-Once-Props.
- Asset Versioning: Automatically returns
Installation
Usage
1. Basic Response Evaluation
2. External & Fragment Redirects
3. Precognition Validation
License
MIT License. See LICENSE for details.
All versions of inertia-protocol with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
The package gilads-otiannoh254/inertia-protocol contains the following files
Loading the files please wait ...