PHPackages                             myth/kindling - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. myth/kindling

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

myth/kindling
=============

A first-class Vite asset pipeline for CodeIgniter 4, with optional Tailwind CSS, Alpine.js, and HTMX support.

v1.0.0-beta1(2mo ago)110↓50%[1 PRs](https://github.com/lonnieezell/kindling/pulls)MITPHPPHP ^8.2CI passing

Since May 20Pushed 1mo agoCompare

[ Source](https://github.com/lonnieezell/kindling)[ Packagist](https://packagist.org/packages/myth/kindling)[ RSS](/packages/myth-kindling/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

myth/kindling
=============

[](#mythkindling)

[![Tests](https://github.com/myth/kindling/actions/workflows/test.yml/badge.svg)](https://github.com/myth/kindling/actions)[![PHP Version](https://camo.githubusercontent.com/ce3e396e4f1bbbd326f628872a1414656d28065f2712cda0868d8eff07320aec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322b2d626c7565)](https://www.php.net/)[![License: MIT](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

A [Vite](https://vitejs.dev/) asset pipeline for [CodeIgniter 4](https://codeigniter.com/) — HMR in development, fingerprinted chunk-aware output in production, and zero manual wiring thanks to CI4's auto-discovery.

**[Full documentation →](https://lonnieezell.github.io/kindling/)**

What you get
------------

[](#what-you-get)

- **One Spark command** — `kindling:install` scaffolds your entire asset setup
- **HMR in development** — edit a JS or CSS file and the browser updates instantly, no reload
- **Fingerprinted builds in production** — Vite hashes every output file; kindling reads the manifest so your views always reference the right URLs
- **Shared chunk deduplication** — if two entry points share a module, the preload tag is emitted once per request
- **Optional integrations** — [Tailwind CSS v4](#tailwind-css), [Alpine.js](#alpinejs), and [HTMX v2](#htmx) all opt-in at install time
- **CSP nonce support** — pass a nonce to `vite_tags()` and it's threaded through every emitted `` tag

Requirements
------------

[](#requirements)

- PHP 8.2+
- CodeIgniter 4.7+
- Node.js 18+

Installation
------------

[](#installation)

```
composer require myth/kindling
```

CI4 discovers the package automatically via Composer — no manual registration needed.

Quick start
-----------

[](#quick-start)

Scaffold your asset setup with a single command:

```
php spark kindling:install
```

The command asks which entry points you want and whether to include Tailwind, Alpine, or HTMX. Pass flags to skip the prompts:

```
php spark kindling:install --entry=app --tailwind --alpine --no-htmx
```

Then install npm dependencies and start the dev server:

```
npm install
npm run dev
```

Add `vite_tags()` to your CI4 layout:

```

```

That's it. See the [Getting Started guide](https://lonnieezell.github.io/kindling/getting-started/) for the full walkthrough.

Optional integrations
---------------------

[](#optional-integrations)

### Tailwind CSS

[](#tailwind-css)

Pass `--tailwind` at install time to include [Tailwind CSS v4](https://tailwindcss.com/) via the official Vite plugin. kindling generates a Tailwind-aware `vite.config.js` and a CSS entry stub with the import already included.

```
php spark kindling:install --tailwind
```

[Tailwind CSS docs →](https://lonnieezell.github.io/kindling/tailwind/)

### Alpine.js

[](#alpinejs)

Pass `--alpine` to include [Alpine.js](https://alpinejs.dev/). kindling adds it to `package.json` and writes the initialization code into your JS entry file.

```
php spark kindling:install --alpine
```

[Alpine.js docs →](https://lonnieezell.github.io/kindling/alpine/)

### HTMX

[](#htmx)

Pass `--htmx` to include [HTMX v2](https://htmx.org/). Works great alongside [michalsn/codeigniter-htmx](https://github.com/michalsn/codeigniter-htmx) for CI4-aware HTMX helpers.

```
php spark kindling:install --htmx
```

[HTMX docs →](https://lonnieezell.github.io/kindling/htmx/)

Documentation
-------------

[](#documentation)

Full documentation is at **[lonnieezell.github.io/kindling](https://lonnieezell.github.io/kindling/)**.

- [Getting Started](https://lonnieezell.github.io/kindling/getting-started/) — working in under 5 minutes
- [Vite Fundamentals](https://lonnieezell.github.io/kindling/vite-fundamentals/) — new to Vite? Start here
- [Configuration](https://lonnieezell.github.io/kindling/configuration/) — every config option explained
- [Using in Views](https://lonnieezell.github.io/kindling/views/) — the `vite_tags()` helper and nonce support

Contributing
------------

[](#contributing)

Pull requests are welcome. The project uses Docker for a consistent dev environment.

```
composer docker:test        # run PHPUnit
composer docker:cs-fix      # fix coding style
composer docker:analyze     # PHPStan + Rector
composer docker:ci          # run all checks
composer docker:shell       # bash inside the container
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

65d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65f693f45781e767ed8557b776fd775309e7a262629892b99cf38462931e9b26?d=identicon)[lonnieezell](/maintainers/lonnieezell)

---

Top Contributors

[![lonnieezell](https://avatars.githubusercontent.com/u/51931?v=4)](https://github.com/lonnieezell "lonnieezell (22 commits)")

---

Tags

codeignitertailwindviteassetsalpinejscodeigniter4htmx

### Embed Badge

![Health badge](/badges/myth-kindling/health.svg)

```
[![Health](https://phpackages.com/badges/myth-kindling/health.svg)](https://phpackages.com/packages/myth-kindling)
```

###  Alternatives

[tatter/assets

Asset publishing and loading for CodeIgniter 4

4968.7k5](/packages/tatter-assets)[michalsn/minifier

Assets minification and versioning library for CodeIgniter 4.

5438.2k](/packages/michalsn-minifier)[codeigniter4/settings

Settings library for CodeIgniter 4

95589.6k35](/packages/codeigniter4-settings)[codeigniter4/tasks

Task Scheduler for CodeIgniter 4

124177.3k1](/packages/codeigniter4-tasks)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

70201.9k122](/packages/codeigniter4-devkit)[tatter/alerts

Lightweight user alerts for CodeIgniter 4

3980.9k6](/packages/tatter-alerts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
