cakephp/app-tailwind
Composer 安装命令:
composer create-project cakephp/app-tailwind
包简介
CakePHP skeleton Tailwind app
README 文档
README
An application skeleton for creating applications with CakePHP 5.x. and tailwind
The framework source code can be found here: cakephp/cakephp.
Requierements
- PHP >= 8.1
- NodeJS ^20.19.0 || >=22.12.0
- NPM >=8.0.0
Installation
- Download Composer or update
composer self-update. - Run
php composer.phar create-project --prefer-dist cakephp/app-tailwind [app_name].
If Composer is installed globally, run
composer create-project --prefer-dist cakephp/app-tailwind myapp
To use the latest commit:
composer create-project cakephp/app-tailwind tailwind -s dev
Next, install tailwind and vite with npm:
npm install
Running a development server
You can run both a PHP development server, and tailwind with on-demand rebuilds using:
bin/cake devserver
Then visit http://localhost:8765 to see the welcome page. If you already have
a webserver that supports PHP, you can run the tailwind compiler on its own
with:
npm run dev
Building for production
To build CSS assets for production, use:
npm run build
Bake templates
This application skeleton contains a bake templates and helper templates that produce HTML using tailwind utility classes. You can and should adapt these templates to fit the needs of your application.
Demo app
Check out the 5.x-demo branch, which contains demo migrations and a seeder. See the README on how to get it running.
Update
Since this skeleton is a starting point for your application and various files would have been modified as per your needs, there isn't a way to provide automated upgrades, so you have to do any updates manually.
Configuration
Read and edit the environment specific config/app_local.php and set up the
'Datasources' and any other configuration relevant for your application.
Other environment agnostic settings can be changed in config/app.php.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-10