Create Web-API with Symfony
Check requirements for Symfony
- install symfony cli
- install php with xdebug
brew install symfony-cli/tap/symfony-cli
brew install php
arch -arm64 sudo pecl install xdebug
symfony check:requirements
https://symfony.com/download https://symfony.com/doc/current/setup.html https://docs.devsense.com/en/vscode/debug/xdebug-mac
Start a new project
create a new project with symfony cli
symfony local:new --api symfony-web-api-project
cd symfony-web-api-project
create a .env.local file
cp .env .env.local
configure database in .env.local
install maker bundle
symfony composer require symfony/maker-bundle --dev
make entities
symfony console make:entity
make command for import data
symfony console make:command