Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.97 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.97 KB

CodeIgniter HTMX, adapted for PHP 7.4

This fork is meant to adapt the library for PHP 7.4 (the original library only works with PHP 8.x)

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.

PHPUnit PHPStan Deptrac Coverage Status

PHP CodeIgniter

Installation

To install in an existing composer project, run in command line:

composer config minimum-stability dev
composer config repositories.codeigniter-htmx vcs [email protected]:dgvirtual/codeigniter-htmx.git
composer require michalsn/codeigniter-htmx:dev-php7port

For manual installation, follow the manual installation instructions in the docs, while downloading package from this repository.

Remember - you still need to include the htmx javascript library inside the head tag.

Docs

https://michalsn.github.io/codeigniter-htmx/

Demos

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

As of 2023-01-20, the demos seem to not include any PHP8-only code and should work out-of-the-box.