This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Authentication package for php

dev-master / 1.0.0.x-dev 2015-07-07 13:57 UTC

This package is auto-updated.

Last update: 2021-10-17 03:15:52 UTC


README

Documentation Status Build Status Scrutinizer Code Quality Total Downloads License Code Climate

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: Composer

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.

- Click for Documentation

#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.

- Laravel 5.1

- CodeIgniter 3

- FuelPHP 1.7

Gitter:

Gitter