ksungcaya / phpass
PHPass integration to Laravel
Installs: 160
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 4
Open Issues: 0
pkg:composer/ksungcaya/phpass
Requires
- php: >=5.4.0
- illuminate/support: 5.0.*
This package is auto-updated.
Last update: 2025-10-13 18:15:39 UTC
README
#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.
Installation
Install package through Composer.
"require": { "ksungcaya/phpass": "~1.0" }
Then run composer update
$ composer update
Update app/config/app.php and include a reference to this package's service provider in the providers array.
'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.
Usage
Now that PHPass is installed in Laravel, you can now use the normal Auth and Hash methods.
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.