475 private links
Démarrer rapidement une application Web sur-mesure avec le Framework Symfony 5.
Installation du projet
-
Clôner le projet
$ git clone https://github.com/applicationsweb/SF5_STARTER.git -
Installer le projet
$ composer update -
Configurer le projet
Dans le fichier .env :
#Configurer le serveur de mail
MAILER_DSN=smtp://login:password@hostname:port
#Configurer la base de données
DATABASE_URL=mysql://root:@127.0.0.1:3306/sf5starter?serverVersion=5.7
-
Créer la base de données
$ php bin/console doctrine:database:create -
Générer les tables
$ php bin/console doctrine:migrations:migrate -
Générer de faux comptes
$ php bin/console doctrine:fixtures:load -
Démarrer le projet
$ symfony server:start
How to Build a Login Form: See also If you’re looking for the form_login firewall option, see Using the form_login Authentication Provider. Ready to create a login form? First, make sure you’ve ...
TL;DR: Symfony is a PHP framework as well as a set of reusable PHP components and libraries. It uses the Model-View-Controller design pattern and can be scaled to be used in any requirement. It aims to speed up the creation and maintenance of web applications, replacing repetitive code. In this tutorial, I'll show you how to create your very own blog, with content stored in the database and authentication through Auth0. The finished code can be found at this GitHub repository.