Skip to content

Repository files navigation

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

About

HTMX helper library for CodeIgniter 4 framework

Topics

Resources

Stars

83 stars

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages