Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.71 KB

File metadata and controls

30 lines (18 loc) · 1.71 KB

CodeIgniter HTMX

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.

PHPUnit PHPStan Deptrac Coverage Status

PHP CodeIgniter

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/

Demos

https://github.com/michalsn/codeigniter-htmx-demo