bobkingstone / securepass
Auto-generate random password string with option for the inclusion of symbols. Uses Laravels Str random function to generate original alpha numeric string
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2019-02-20 18:02:12 UTC
README
THIS PROJECT IS NO LONGER ACTIVLY DEVELOPED.
This package uses Laravels 'St::random()' function to generate the basic alpha numeric string and then adds symbols as requested.
##Installation Add bobkingstone/securepass to your composer.json
"require": {
"bobkingstone/securepass": "dev-master"
}
Run composer update
composer update
Once this has completed add the service provider to the array of providers in app/config/app.php
'Bobkingstone\Securepass\SecurepassServiceProvider'
##Usage The package generates a facade for the package automatically, so all you need to run is:
Securepass::generate();
This will return a random string with a length of 10 characters by default.
To create a different length string pass in the required length:
Securepass::generate(11);
To include symbols within password:
Securepass::generate(11,true);
To generate a more human readable password:
Securepass::generateHuman();