This library is actively being developed and is unstable.
An InertiaJS Adapter for PHP projects that uses implementation of PSR7 (HTTP Message Interface), PSR15 (Server Request Handlers), and optionally PSR11 (Container Interface).
Install library using composer command:
$ composer require thewebsolver/inertia
For seamless handling of Middlewares and storing each middleware response, require Pipeline library and use it in your request handler. For more details see pipeline docs.
$ composer require thewebsolver/pipeline
- Provides seamless integration with any PHP Project that adheres to the PSR-7 & PSR-15 implementation.
- Fluent API with very less friction and easy setup.
- Works with Pipeline library to handle Middlewares (including this library's middleware) and retrieve Response back with headers intact.
- Provides option to register your resource/asset version as well as root-view/template using middleware's helper method.
- Provides additional subscription option that gets invoked alongside this library's middleware.
- Supports Dependency Injection with your own App Container (that implements PSR-11
Psr\Container\ContainerInterface
).
For usage details, visit Wiki page.