PHPackages                             dereuromark/cakephp-tailwind-ui - 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. dereuromark/cakephp-tailwind-ui

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

dereuromark/cakephp-tailwind-ui
===============================

Tailwind CSS / DaisyUI helpers for CakePHP forms, pagination, flash messages, and more.

0.2.2(1mo ago)041MITPHPPHP &gt;=8.2CI passing

Since Apr 12Pushed 2w agoCompare

[ Source](https://github.com/dereuromark/cakephp-tailwind-ui)[ Packagist](https://packagist.org/packages/dereuromark/cakephp-tailwind-ui)[ Docs](https://github.com/dereuromark/cakephp-tailwind-ui)[ RSS](/packages/dereuromark-cakephp-tailwind-ui/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

CakePHP TailwindUi Plugin
=========================

[](#cakephp-tailwindui-plugin)

[![CI](https://github.com/dereuromark/cakephp-tailwind-ui/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dereuromark/cakephp-tailwind-ui/actions/workflows/ci.yml?query=branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/f9e2a6c1ed18878751023b664e4c358906432eff2a86d390abf7fd93e6ceb74c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6465726575726f6d61726b2f63616b657068702d7461696c77696e642d75692f6d61737465722e737667)](https://codecov.io/gh/dereuromark/cakephp-tailwind-ui)[![Latest Stable Version](https://camo.githubusercontent.com/ac52b1ac158da6c0ee9551462e341802a8589071ba7b7082bed77c9366ccf877/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d7461696c77696e642d75692f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-tailwind-ui)[![Minimum PHP Version](https://camo.githubusercontent.com/ec21f169d70b69344c67d6f18fa1a24d20476d2f0cd680e8c4a1534c22f34e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/f57c07c1b719278fd33b6516c8f1143a8989ac0fb383bcb7c41e3a4c63669041/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d7461696c77696e642d75692f6c6963656e73652e737667)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/42dc2666a9f6c086e98a93df29c8d62792fa877ebc8184a1306b23a18411aaf8/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d7461696c77696e642d75692f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-tailwind-ui)[![Coding Standards](https://camo.githubusercontent.com/7d06840986f78de39fb7ba7052db7208fb349427094ac1a4540449ca87776aff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d506870436f6c6c6563746976652d707572706c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-collective/code-sniffer)

This branch is for **CakePHP 5.2+**. See [version map](https://github.com/dereuromark/cakephp-tailwind-ui/wiki#cakephp-version-map) for details.

Tailwind CSS / DaisyUI view helpers for CakePHP 5.2+.
Drop-in replacement for Bootstrap-styled helpers — outputs Tailwind/DaisyUI markup instead.

This plugin is the Tailwind equivalent of [bootstrap-ui](https://github.com/FriendsOfCake/bootstrap-ui).

Preview
-------

[](#preview)

`$this->Form->control()`, `$this->Paginator->links()`, `$this->Flash->render()`, and `$this->Html->badge()` rendered with the default DaisyUI preset:

[![Form controls](docs/screenshots/daisyui-forms.png)](docs/screenshots/daisyui-forms.png)[![Articles index](docs/screenshots/daisyui-articles-index.png)](docs/screenshots/daisyui-articles-index.png)[![Buttons](docs/screenshots/daisyui-buttons.png)](docs/screenshots/daisyui-buttons.png)[![Alerts](docs/screenshots/daisyui-alerts.png)](docs/screenshots/daisyui-alerts.png)See [docs/](docs/README.md) for the full set of screenshots and documentation.

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

[](#installation)

```
composer require dereuromark/cakephp-tailwind-ui
```

Load the plugin:

```
bin/cake plugin load TailwindUi
```

Quick Start
-----------

[](#quick-start)

In your `AppView::initialize()`:

```
use TailwindUi\View\UiViewTrait;

class AppView extends View
{
    use UiViewTrait;

    public function initialize(): void
    {
        parent::initialize();
        $this->initializeUi();
    }
}
```

All `$this->Form->control()`, `$this->Paginator->links()`, `$this->Flash->render()`, and `$this->Breadcrumbs->render()` calls now output DaisyUI-styled markup.

Class Map
---------

[](#class-map)

The plugin uses a configurable class map. DaisyUI is the default. To switch to KTUI (Metronic):

```
// In config/bootstrap.php or Application::bootstrap()
Configure::write('TailwindUi.classMap', 'ktui');
```

Partial overrides:

```
Configure::write('TailwindUi.classMap', [
    'form.input' => 'my-custom-input-class',
]);
```

Helpers
-------

[](#helpers)

HelperDescription**FormHelper**Text, select, checkbox, radio, switch, textarea, file, range, input groups, horizontal layout**PaginatorHelper**`links()` method with join/flex container**FlashHelper**Alert rendering with icons**BreadcrumbsHelper**Breadcrumb navigation**HtmlHelper**`badge()`, `alert()`, and `icon()` methodsClass Map Presets
-----------------

[](#class-map-presets)

PresetFrameworkUsage`daisyui` (default)[DaisyUI](https://daisyui.com)No config needed`ktui`[KTUI/Metronic](https://keenthemes.com/metronic)`Configure::write('TailwindUi.classMap', 'ktui')`Custom presets can be added by placing a PHP file in `config/class_maps/` that returns an array.

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

[](#documentation)

- [Installation](docs/installation.md)
- [Class Map](docs/class-map.md)
- [Helpers](docs/helpers.md)
- [Presets](docs/presets.md) — DaisyUI, KTUI, custom
- [Bake Theme](docs/bake.md)
- [Screenshots](docs/README.md#screenshots)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance95

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

Every ~7 days

Total

4

Last Release

37d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (47 commits)")

---

Tags

helpersuipaginationcakephptailwindformDaisyUI

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dereuromark-cakephp-tailwind-ui/health.svg)

```
[![Health](https://phpackages.com/badges/dereuromark-cakephp-tailwind-ui/health.svg)](https://phpackages.com/packages/dereuromark-cakephp-tailwind-ui)
```

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

336972.2k49](/packages/dereuromark-cakephp-tools)[aplus/pagination

Aplus Framework Pagination Library

2101.6M3](/packages/aplus-pagination)[harvesthq/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

405.3M12](/packages/harvesthq-chosen)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.1M21](/packages/dereuromark-cakephp-shim)[aura/html

Provides HTML escapers and helpers, including form input helpers.

52277.4k22](/packages/aura-html)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

3096.0k5](/packages/dereuromark-cakephp-dto)

PHPackages © 2026

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