2017 © Pedro Peláez
 

library doctrine-auth-provider

Laravel Auth Provider with Doctrine integration

image

barnetik/doctrine-auth-provider

Laravel Auth Provider with Doctrine integration

  • Friday, April 1, 2016
  • by arraintxo
  • Repository
  • 3 Watchers
  • 1 Stars
  • 76 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Authentication Adapter For Laravel 5 Using Doctrine Models

This package allows a Doctrine model based authentication for Laravel 5. Tries to avoid multiple ways to access database for projects using laravel-doctrine package., (*1)

Installation

Configure [laravel-doctrine](https://github.com/atrauzzi/la ravel-doctrine) package with DriverChain driver., (*2)

Require barnetik/doctrine-auth-provider in composer.json and run composer update., (*3)

{
    "require": {
        "laravel/framework": "5.0.*",
        ...
        "barnetik/doctrine-auth-provider": "*"
    }
    ...
}

Composer will download the package. After the package is downloaded, open config/app.php and add the service provider:, (*4)

'providers' => array(
    ...
    'Barnetik\DoctrineAuth\DoctrineAuthServiceProvider',
),

Usage

User model definition

Copy the base model to your models path using this command:, (*5)

$ php artisan doctrine-auth:publish:usermodel \My\Models\Path

Take care about the PATH, the command will use de app_path() as base path., (*6)

Table creation

Once the Model is in its place, create the table in the DB., (*7)

Generate a migration diff :, (*8)

$ php vendor/bin/doctrine-laravel migrations:diff

Check the generated file and if everything is ok, do the migration:, (*9)

$ php vendor/bin/doctrine-laravel migrations:migrate

Configuration

Open config/auth.php and set appropiate driver and model:, (*10)

[
    ...
    'driver' => 'doctrine',
    'model' => 'My\Models\Path\User',
    ...
]

Use authentication as explained on Laravel's Authentication chapter., (*11)

If desired, generate user with provided command:, (*12)

$ php artisan doctrine-auth:user:create --username=admin --password=1234

License

The Laravel framework is open-sourced software license under the MIT license, (*13)

This project is too to ensure maximum compatibility., (*14)

The Versions

01/04 2016

dev-master

9999999-dev

Laravel Auth Provider with Doctrine integration

  Sources   Download

MIT

The Requires

 

by Arkaitz Etxeberria
by Alayn Gortazar

laravel authentication auth doctrine

16/09 2015

v5.1.0

5.1.0.0

Laravel Auth Provider with Doctrine integration

  Sources   Download

MIT

The Requires

 

by Arkaitz Etxeberria
by Alayn Gortazar

laravel authentication auth doctrine

25/08 2015

v0.1.2

0.1.2.0

Laravel Auth Provider with Doctrine integration

  Sources   Download

MIT

The Requires

 

by Arkaitz Etxeberria
by Alayn Gortazar

laravel authentication auth doctrine

23/03 2015

v0.1.1

0.1.1.0

Laravel Auth Provider with Doctrine integration

  Sources   Download

MIT

The Requires

 

by Arkaitz Etxeberria
by Alayn Gortazar

laravel authentication auth doctrine

23/03 2015

v0.1.0

0.1.0.0

Laravel Auth Provider with Doctrine integration

  Sources   Download

MIT

The Requires

 

by Arkaitz Etxeberria
by Alayn Gortazar

laravel authentication auth doctrine