luberius/php-tw 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luberius/php-tw

最新稳定版本:v1.0.5

Composer 安装命令:

composer create-project luberius/php-tw

包简介

A PHP project template with Tailwind CSS integration

README 文档

README

PHP-TW is a project template that integrates PHP with Tailwind CSS, providing a streamlined setup for web development projects. It offers a pre-configured environment that you can quickly set up using Composer.

Features

  • Quick project setup with a single Composer command
  • Integrated Tailwind CSS for efficient styling
  • Built-in development server with live CSS updates
  • Pre-configured project structure for immediate development

Requirements

  • PHP 8.0 or higher
  • Composer

Installation

You can create a new PHP-TW project using Composer's create-project command:

composer create-project luberius/php-tw my-new-project

This will create a new directory my-new-project with all the necessary files and dependencies installed.

Usage

Starting the Development Server

After creating your project, navigate to the project directory and start the development server:

cd my-new-project
php wand serve

This will start a PHP development server and Tailwind CSS watcher. Your project will be accessible at http://localhost:6969.

Project Structure

my-new-project/
├── app/
│   ├── css/
│   │   └── app.css
│   └── index.php
├── bootstrap/
│   ├── app.php
│   └── commands/
│       └── ServeCommand.php
├── vendor/
├── .gitignore
├── composer.json
├── tailwind.config.js
└── wand
  • app/: Contains your application code
  • app/css/app.css: Main CSS file (with Tailwind directives)
  • app/index.php: Entry point of your application
  • bootstrap/: Contains files for bootstrapping your application
  • vendor/: Composer dependencies
  • tailwind.config.js: Tailwind CSS configuration file
  • wand: Command-line script for various project tasks

Customization

Tailwind CSS

You can customize Tailwind CSS by editing the tailwind.config.js file in your project root. Refer to the Tailwind CSS documentation for more information.

Adding New Commands

To add new commands to your project, create a new PHP file in the bootstrap/commands/ directory. The command will be automatically registered and available through the wand script.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open-sourced software licensed under the MIT license.

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.

Acknowledgements

Happy coding with PHP-TW!

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-21