This is a Symfony template designed to help developers quickly set up a Symfony project.
Follow these steps to use this template for local development:
- PHP (version 8.1 or higher)
- Composer
- A web server (e.g., Apache or Nginx)
- A database (e.g., MySQL or PostgreSQL)
-
Clone the repository:
git clone <repository-url> my-symfony-project cd my-symfony-project
-
Install dependencies:
composer install
-
Set up environment variables:
- Copy the
.envfile:cp .env .env.local
- Update
.env.localwith your database credentials and other configurations.
- Copy the
-
Set up the database:
php bin/console doctrine:database:create php bin/console doctrine:migrations:migrate
-
Start the development server:
symfony server:start
-
Access the application in your browser at
http://127.0.0.1:8000.
-
Clear the cache:
php bin/console cache:clear
-
Run tests:
php bin/phpunit
-
Install assets:
php bin/console assets:install
Feel free to submit issues or pull requests to improve this template.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.