nicojmb/ci4-inertia

Inertia server-side adapter for CodeIgniter 4

Fund package maintenance!
nicojmb

1.0.0 2025-03-06 13:08 UTC

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

Latest Version on Packagist Tests Total Downloads

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.