1 hour ago · 7 min read1347 words · Tech · hide · 0 comments

If you’ve used CakePHP for any length of time, you’ve probably shipped apps with friendsofcake/bootstrap-ui — the plugin that makes $this->Form->control() output Bootstrap markup without a single hand-written class. It’s been a workhorse for years. But Bootstrap isn’t the only game in town anymore. Over the last couple of years Tailwind CSS has gone from “another utility framework” to the default choice for new projects. So I built cakephp-tailwind-ui. The 30-second version Install it, load it, use your existing FormHelper calls: composer require dereuromark/cakephp-tailwind-ui bin/cake plugin load TailwindUi In AppView: use TailwindUi\View\UiViewTrait; class AppView extends View { use UiViewTrait; public function initialize(): void { parent::initialize(); $this->initializeUi(); } } That’s it. Every call you already have — $this->Form->control(), $this->Paginator->links(), $this->Flash->render(), $this->Html->badge() — now outputs DaisyUI-styled markup. Your templates don’t change.…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.