atayahmet / glad
Authentication package for php
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-17 10:14:27 UTC
README
It is an authentication package for your project you can quickly and simply integrated. Whether composer supported the use of any framework or use native PHP projects, establishing the Composer.
Below you will find links on how to use a few framework.
Features
- Simple and permanent method names in mind.
- It can be used quickly with a few small configuration.
- Customizable usage.
- The flexible structure can create their own provider you can encode several classes again on this occasion.
- Cache flexibility in the structure and to provide a quick start with the hosting service in the current cache.
- All classes with attentive and intelligent testing scenarios to be written.
Install
Glad Auth package you need to add to your project with the composer. If you have not used before, composer or composer is not installed, you can start from the following link:
add to section require in composer.json:
"atayahmet/glad" : "1.0.*@dev"
after run the:
$ composer update
login:
use Glad\Glad; Glad::login(['email' => 'ali.yildiz@example.com', 'password' => '1234123']); if(Glad::status() === true) { // do something... }
register
use Glad\Glad; Glad::register([ 'firstname' => 'Can', 'lastname' => 'ÖZTÜRK', 'email' => 'can.ozturk@example.com', 'password' => '123412' ]); if(Glad::status() === true) { // do something... }
#Documentation Documentation is written in readthedocs.org.
#Use in Frameworks (Demos)
In terms of the integration it is made by way of example below with a few framework.
We hope that is helpful.
Gitter: