Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prawee/symfony-udemy
https://github.com/prawee/symfony-udemy
Last synced: about 11 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/prawee/symfony-udemy
- Owner: prawee
- Created: 2020-04-03T05:17:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:53:24.000Z (almost 2 years ago)
- Last Synced: 2023-06-17T12:01:25.854Z (over 1 year ago)
- Language: PHP
- Size: 3.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# symfony-udemy
## Create project
```bash
symfony new symfony-udemy --version=4.4
```## Install package and create controller
```bash
composer require symfony/maker-bundle
composer require annotations | composer require doctrine/annotations
php bin/console make:controller
```## Install package and render view
```bash
composer require symfony/twig-bundle
```## Install package and database
```bash
composer require symfony/orm-pack
php bin/console doctrine:database:create
php bin/console make:entity
php bin/console make:migration
php bin/console doctrine:migrations:migrate
php bin/console doctrine:migrations:execute --up 20200404071331
```## Install package with form
```bash
composer require symfony/form
php bin/console make:form
```## Install package and validation
```bash
composer require symfony/validator
```## Fixed relation of database
```bash
php bin/console doctrine:database:drop --force
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
```## Install package and asset
```bash
composer require symfony/asset
composer require encore
npm run watch
```### Enable SASS
```bash
npm install sass-loader@^7.0.1 node-sass --save-dev
npm run watch
```## Fixture
```bash
composer require orm-fixtures --dev
php bin/console doctrine:fixtures:load
```## Event
```bash
composer require symfony/event-dispatcher
```### Event Subscriber
```bash
php bin/console debug:event-dispatcher kernel.exception
```## Start Server
```bash
symfony server:start
```