Download the PHP package luberius/php-tw without Composer
On this page you can find all versions of the php package luberius/php-tw. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luberius/php-tw
More information about luberius/php-tw
Files in luberius/php-tw
Package php-tw
Short Description A PHP project template with Tailwind CSS integration
License MIT
Informations about the package php-tw
PHP-TW: PHP Project Template with Tailwind CSS
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:
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:
This will start a PHP development server and Tailwind CSS watcher. Your project will be accessible at http://localhost:6969
.
Project Structure
app/
: Contains your application codeapp/css/app.css
: Main CSS file (with Tailwind directives)app/index.php
: Entry point of your applicationbootstrap/
: Contains files for bootstrapping your applicationvendor/
: Composer dependenciestailwind.config.js
: Tailwind CSS configuration filewand
: 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!
All versions of php-tw with dependencies
symfony/console Version ^5.4
symfony/process Version ^5.4
luberius/tailwindcss Version ^1.0