Coder Social home page Coder Social logo

cours-symfony's Introduction

Cours symfony

-----------------------------------------------------step 1

Create projet :

    /usr/local/bin/composer create-project symfony/skeleton /home/moustache/Documents/symfony/amazone  --no-interaction

Init git :

    git init && \
    git remote add origin [email protected]:MoustacheTheCat/cours-symfony.git && \
    git add . && \
    git commit -m "init" && \
    git push -u origin main

Lancer le serveur :

    symfony server:start

Stoper le serveur :

    symfony server:stop

Crée un controller :

    symfony console make:controller

--------------renseigner ensuite le nom du controller

Crée la db :

    symfony console doctrine:database:create

Crée une Entity :

    symfony console make:entity

Crée la tabledb :

    symfony console doctrine:schema:update

    --dump-sql

    --force

Crée une fixture :

    symfony console make:fixtures <nom de la fixture>

envoyer les données en DB

    symfony console doctrine:fixtures:load

envoyer les données en DB sans purge

    symfony console doctrine:fixtures:load --append

----------------------------------------------------------Installer les packages

Enabling TLS:

  symfony server:ca:install

Console de debug:

    composer require symfony/profiler-pack 

Crée les controller:

    composer require symfony/maker-bundle --dev

ORM

    composer require symfony/orm-pack

-->editer le fichier .env

-> DATABASE_URL="mysql://:@127.0.0.1:3306/?serverVersion=10.11.2-MariaDB&charset=utf8mb4"

-ORM FIXTURE

    composer require --dev orm-fixtures

cours-symfony's People

Contributors

moustachethecat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.