- PHP 8.0 or higher;
- PDO PHP extension enabled (as you prefer);
- Git;
- and the usual Symfony application requirements.
Move to the desired folder and clone the repository by launching one of the following commands:
git clone git@github.com:lruozzi9/symfony-project.git # for SSH
git clone https://github.com/lruozzi9/symfony-project.git # for HTTPS auth
gh repo clone lruozzi9/symfony-project # if you have the GitHub CLIMove to the project dir:
cd symfony-projectInstall composer dependencies:
composer install --no-dev # For production
composer install # For developmentYou can install or develop on this project using both:
- Local runtime environment: in this setup the webserver and PHP is installed and run directly on your machine as your services (Postgres, MailHog, etc...). This setup might be the most speed efficient, but it's the worst in terms of maintainability and compatibility with other projects in your work environment.
- Hybrid runtime environment: in this setup the webserver and PHP is installed and run directly on your machine, only services (Postgres, MailHog, etc...) run with Docker containers. This setup is especially useful on macOS where using a Docker runtime results in bad performances due to filesystem sync latency with bind mounted volumes.
- Docker runtime environment: in this setup both the runtime and services are run on Docker containers.