Download the PHP package costsrl/cost-authentication without Composer
On this page you can find all versions of the php package costsrl/cost-authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download costsrl/cost-authentication
More information about costsrl/cost-authentication
Files in costsrl/cost-authentication
Package cost-authentication
Short Description Authentication based on DoctrineORMModule
License BSD-3-Clause
Informations about the package cost-authentication
CostAuthentication
What is CostAuthentication?
What exactly does CostAuthentication do?
CsnUser has been created with educational purposes to demonstrate how Authentication can be done. It is fully functional.
CsnUser module consists of:
- Login with remember me
- Registration with Captcha and Confirmation email
- Forgotten password with confirmation email.
In addition, the passwords have two levels of protection - a dynamic and static salt.
What's the use again?
An alternative to ZfcUser with more functionality added.
Installation
- Add
CostAuthentication
,DoctrineModule
andDoctrineORMModule
in your application configuration at:./config/application.config.php
. An example configuration may look like the following :
branch 'master' of http://git.cost.it/cost/cost-authentication.git
Configuration
CostAuthentication requires setting up a Connection for Doctrine, a simple Mail configuration and importing a database schema.
-
Create a new database (or use an existing one, dedicated to your application).
-
Copy the sample Doctrine configuration from
./vendor/cost/cost-authentication/config/doctrineorm.local.php.dist
to./config/autoload
renaming it to doctrineorm.local.php. Edit the file, replacing the values (username, password, etc) with your personal database parameters. -
Run
./vendor/bin/doctrine-module orm:schema-tool:create
to generate the database schema. Import the sample SQL data (for default roles and languages) located in./vendor/cost/cost-authentication/data/SampleData.sql
. You can easily do that with PhpMyAdmin for instance. -
Copy the sample Mail configuration from
./vendor/cost/cost-authentication/config/mail.config.local.php.dist
to./config/autoload
renaming it to mail.config.local.php. Edit the file, replacing the values (host, username, etc) with your SMTP server parameters. -
Depend on Database overwrite Enity "User" with class under data/EntityPlatform and rename it. Options
The CostAuthentication module has some options to allow you to quickly customize the basic functionality.
Create novigo folder under vendor directory
After installing CostAuthentication, copy
./vendor/cost/cost-authentication/config/cost-authentication.global.php.dist
to
./config/autoload
, renaming it to cost-authentication.global.php and change the values as desired, following the instructions.
The following options are available:
- STATIC_SALT Constant string value, prepended to the password before hashing
- login_redirect_route String value, name of a route in the application which the user will be redirected to after a successful login.
- logout_redirect_route String value, name of a route in the application which the user will be redirected to after logging out.
- nav_menu Bool value, show or hide navigation menu.
It is ready?
Navigate to [hostname]/user in your browser to view different options for login, registration, forgotten password, etc.
Dependencies
This Module depends on the following Modules:
- [DoctrineORMModule] (https://github.com/doctrine/DoctrineORMModule) - DoctrineORMModule integrates Doctrine 2 ORM with Laminas Framework 2 quickly and easily.
Recommends
branch 'laminas' of https://[email protected]/novigoteam/cost-authentication.git