nicojmb / ci4-inertia
Inertia server-side adapter for CodeIgniter 4
Fund package maintenance!
nicojmb
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.21.1
- pestphp/pest: ^3.0
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2025-05-12 22:34:22 UTC
README
This code is updated with latest InertiaJS and PHP 8.+ Support. T
Installation
You can install the package via composer:
composer require nicojmb/ci4-inertia
Example
You can see it working in the Starter Kit project:
https://github.com/nicojmb/ci4-starter-kit
Testing
composer test
Roadmap
Tests
- Controller test
- Helper test.
inertia()
helper. - Inertia headers test. An Inertia request should return an Inertia response (JSON response).
- Shared data test. It should be accesses in any response.
- Lazy props test.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.