Download the PHP package thiagogomesverissimo/symfony_traditional_login without Composer
On this page you can find all versions of the php package thiagogomesverissimo/symfony_traditional_login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package symfony_traditional_login
Symfony 4 Traditional Login Form with users from database (migrations available to mysql)
This project is an basic implementation of traditional login form with users from database on symfony, as described in the https://symfony.com/doc/current/security/form_login_setup.html and some codes from symfony demo
Included:
- login and logout routes configured
- web crud and commands to manage users in database
- passwords encoded with bcrypt
Not Included:
- Registration to anonymous
- Area to user to change the own password
The main reason for this project is to be a start point to another projects thet depends of local users to work.
Deploy
Download lastest release:
composer create-project thiagogomesverissimo/symfony_traditional_login
Download branch master:
composer create-project thiagogomesverissimo/symfony_traditional_login -s dev
Configure .env variables and run migrations (only for mysql users):
php bin/console doctrine:migrations:migrate
Up server:
php bin/console server:run
Three suggestions to create users on database:
1. To use data fixtures that create two users: admin and user, same for passwords:
php bin/console doctrine:fixtures:load
2. To use command:
php bin/console app:add-user user user123
php bin/console app:add-user admin admin123 --admin
php bin/console app:list-users
php bin/console app:delete-user admin
php bin/console app:delete-user user
3. For learning purposes, you can use psysh:
bin/console psysh
$em = $container->get('doctrine')->getManager()
$admin = new App\Entity\User
$admin->setUsername('admin')
$password = $container->get('security.password_encoder')->encodePassword($admin, 'admin')
$admin->setPassword($password)
$em->persist($admin)
$em->flush()
All versions of symfony_traditional_login with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.3
ext-iconv Version *
sensio/framework-extra-bundle Version ^5.1
symfony/asset Version ^4.0
symfony/console Version ^4.0
symfony/expression-language Version ^4.0
symfony/flex Version ^1.0
symfony/form Version ^4.0
symfony/framework-bundle Version ^4.0
symfony/lts Version ^4@dev
symfony/monolog-bundle Version ^3.1
symfony/orm-pack Version *
symfony/process Version ^4.0
symfony/security-bundle Version ^4.0
symfony/serializer-pack Version *
symfony/swiftmailer-bundle Version ^3.1
symfony/twig-bundle Version ^4.0
symfony/validator Version ^4.0
symfony/web-link Version ^4.0
symfony/webpack-encore-pack Version *
symfony/yaml Version ^4.0
ext-iconv Version *
sensio/framework-extra-bundle Version ^5.1
symfony/asset Version ^4.0
symfony/console Version ^4.0
symfony/expression-language Version ^4.0
symfony/flex Version ^1.0
symfony/form Version ^4.0
symfony/framework-bundle Version ^4.0
symfony/lts Version ^4@dev
symfony/monolog-bundle Version ^3.1
symfony/orm-pack Version *
symfony/process Version ^4.0
symfony/security-bundle Version ^4.0
symfony/serializer-pack Version *
symfony/swiftmailer-bundle Version ^3.1
symfony/twig-bundle Version ^4.0
symfony/validator Version ^4.0
symfony/web-link Version ^4.0
symfony/webpack-encore-pack Version *
symfony/yaml Version ^4.0
The package thiagogomesverissimo/symfony_traditional_login contains the following files
Loading the files please wait ....