This repository provides a shell script to quickly set up a Symfony project with TailwindCSS and Flowbite. The script automates the installation and configuration of the necessary bundles and files, making it easier to get started with these tools in your Symfony project.
- Symfony Project Creation: Creates a new Symfony project using Symfony CLI.
- TailwindCSS Integration: Installs and initializes TailwindCSS with the provided configuration.
- Flowbite Integration: Installs and sets up Flowbite for enhanced UI components.
- Configuration Files: Downloads and applies the necessary configuration files for Twig, TailwindCSS, and app assets.
Before running the script, ensure that you have the following installed:
- Symfony CLI: Symfony CLI installation guide
- Composer: Composer installation guide
- curl: Most systems come with curl installed. If not, install curl.
-
Clone the Repository:
git clone https://github.com/ICEatm/easySTW.git cd your-repo-name
-
Run the Script:
Make sure the script is executable:
chmod +x setup-symfony-tailwind-flowbite.sh
Execute the script by providing your project name as an argument:
./setup-symfony-tailwind-flowbite.sh <project_name>
Replace
<project_name>
with the desired name for your Symfony project.
The script performs the following actions:
-
Creates a New Symfony Project:
symfony new $PROJECT_NAME --webapp
-
Installs TailwindCSS, TwigComponents and Flowbite Bundles:
composer require symfonycasts/tailwind-bundle echo "a" | composer require tales-from-a-dev/flowbite-bundle composer require symfony/ux-twig-component
-
Updates Twig Configuration: Downloads and replaces
config/packages/twig.yaml
with the configuration from the specified URL. -
Initializes TailwindCSS:
php bin/console tailwind:init
-
Imports Flowbite:
php bin/console import:require flowbite
-
Updates
app.js
andapp.css
: Downloads and replacesassets/app.js
andassets/styles/app.css
with the files from the provided URLs. -
Downloads and Makes Executable
start_dev.sh
: Downloads thestart_dev.sh
script and makes it executable. -
Builds TailwindCSS:
php bin/console tailwind:build
Feel free to contribute by submitting issues or pull requests. Please ensure that any changes are thoroughly tested before submitting.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or support, please contact me at discord: .keyof