- PHP 8.0.2 or higher;
- PDO-mySQL PHP extension enabled;
- and the usual Symfony application requirements.
To download and install the project on your computer, run these commands:
Clone the project to download its contents
$ cd projects/
$ git clone https://github.com/andreoneres/symfony-api.git
Make composer install the project's dependencies into vendor:
$ cd symfony-api/
$ composer install
There's no need to configure anything to run the application. If you have installed Symfony binary, run this command:
$ cd symfony-api/
$ symfony server:start
Then access the application in your browser at the given URL (https://localhost:8000 by default).
If you don't have the Symfony binary installed, run php -S localhost:8000 -t public/
to use the built-in PHP web server or configure a web server like Nginx or Apache to run the application.
Execute this command to run tests:
$ cd symfony-api/
$ ./bin/phpunit