Search by

michalsn / codeigniter-htmx

michalsn

HTMX helper for CodeIgniter 4 framework

Package info

github.com/michalsn/codeigniter-htmx

pkg:composer/michalsn/codeigniter-htmx

Statistics

Installs: 49 387

Dependents: 1

Suggesters: 0

Stars: 83

Open Issues: 2

v4.0.0 2026-09-02 17:42 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.

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