A set of methods for IncomingRequest, Response and RedirectResponse classes to help you work with htmx fluently in CodeIgniter 4 framework.
It also provides some additional help with handling errors and Debug Toolbar in development mode as well as support for view fragments.
This version targets the htmx 4 request/response model and event lifecycle. Applications that still use htmx 2 should use the v2 branch.
composer require michalsn/codeigniter-htmx
Note
This package does not install the browser-side htmx library. Install htmx 4 explicitly - for example, npm install htmx.org@4 - and include it in your page. An unversioned npm install may still resolve to htmx 2 during the htmx 4 release transition.
https://michalsn.github.io/codeigniter-htmx/
https://github.com/michalsn/codeigniter-htmx-demo