vitorbarros / vmb-zf2-module-login
Módulo básico de login utilizando o zend2 e doctrine
Requires
This package is not auto-updated.
Last update: 2024-04-19 16:57:26 UTC
README
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
php composer.phar require vitorbarros/vmb-zf2-module-login
Then add DoctrineModule
, DoctrineORMModule
, DoctrineDataFixtureModule
and VMBLogin
to your config/application.config.php
and create directory
data/DoctrineORMModule/Proxy
and make sure your application has write access to it.
Installation without composer is not officially supported and requires you to manually install all dependencies
that are listed in composer.json
Configuration options
To create initial data to test the module configure the database connection as following
<?php return array( 'doctrine' => array( 'connection' => array( // default connection name 'orm_default' => array( 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'user' => 'user', 'password' => 'password', 'dbname' => 'dbnae', ) ) ) ), );
Command Line
Access the Doctrine command line as following
##Create table
./vendor/bin/doctrine-module orm:schema-tool:create
##Import
./vendor/bin/doctrine-module data-fixture:import
##Test
Access in your browser www.yourdomain/login
try authenticate with fallowing credentians
username: admin
password: admin