Handy Commands - MiguelFieira/AMO-HANDBOEK GitHub Wiki
Symfony is a PHP framework for web applications and a set of reusable PHP components. Symfony is used by thousands of web applications (including BlaBlaCar.com and Spotify.com) and most of the popular PHP projects (including Drupal and Magento).
This is a summary of the commands you can find on the other pages.
-
To create your local project:
composer create-project symfony/website-skeleton:4.3.* my-project -
To add your local dev server:
composer require symfony/web-server-bundle --dev
-
To start your local server use the command:
php bin/console server:run -
To create your Database use the command:
php bin/console doctrine:database:create -
To force a Database update use the command:
php bin/console doctrine:schema:update --force -
To make a Controller use the command:
php bin/console make:controller -
To make a Entity use the command:
php bin/console make:entity -
To make a Crud use the command:
php bin/console make:crud -
To clear your Cache use the command:
php bin/console cache:clear -
To get a list of all your routes en paths:
php bin/console debug:router
-
To make a Super-Admin User use the command:
php bin/console fos:user:create adminusername --super-admin -
To make a User use the command:
php bin/console fos:user:create username
-
To initialize your new Git Repository use the command:
git init -
To link your new Repository use the command:
git remote add origin Your_Repository_URL -
To add files to a commit use the command:
git add . -
To add a message to your commit use the command:
git commit -m "Commit Message" -
To push your files use the command:
First time:git push origin masterafter thatgit push
*Note You might have to add
--forcewhile pushing the first time!