michalsn / codeigniter-htmx
HTMX helper for CodeIgniter 4 framework
Requires
- php: ^8.2
- codeigniter4/framework: ^4.7
Requires (Dev)
- codeigniter4/devkit: ^1.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-02 17:45:23 UTC
README
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.
Installation
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.
Docs
https://michalsn.github.io/codeigniter-htmx/