2017 © Pedro Peláez
 

library phpass

PHPass integration to Laravel

image

ksungcaya/phpass

PHPass integration to Laravel

  • Tuesday, March 24, 2015
  • by ksungcaya
  • Repository
  • 2 Watchers
  • 1 Stars
  • 142 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHPass Laravel

A PHPass integration to Laravel. This package overrides the default Eloquent Auth Driver and Hashing of Laravel and uses the PHPass password hashing and checking methods., (*1)

Installation

Install package through Composer., (*2)

"require": {
    "ksungcaya/phpass": "~1.0"
}

Then run composer update, (*3)

$ composer update

Update app/config/app.php and include a reference to this package's service provider in the providers array., (*4)

'providers' => [
    'Ksungcaya\Phpass\PhpassServiceProvider'
]

Next is change the driver value to phpass in app/config/auth.php to let Laravel use the PHPass authentication methods., (*5)

Usage

Now that PHPass is installed in Laravel, you can now use the normal Auth and Hash methods., (*6)

Auth::attemp(array(
            'email'    => $email,
            'password' => $password
          )
      );

Hash::make('secret');
Hash::check('secret', $hashedPassword);

That's it!

Please refer to Laravel documentation on Security to know more about Authentication and Hash methods., (*7)

The Versions

24/03 2015

dev-master

9999999-dev

PHPass integration to Laravel

  Sources   Download

MIT

The Requires

 

by Kenneth Sungcaya

05/03 2015

1.1

1.1.0.0

PHPass integration to Laravel

  Sources   Download

MIT

The Requires

 

by Kenneth Sungcaya

05/12 2014

1.0

1.0.0.0

PHPass integration to Laravel

  Sources   Download

MIT

The Requires

 

by Kenneth Sungcaya