| Package Data | |
|---|---|
| Maintainer Username: | ircop |
| Maintainer Contact: | wingman@ip-home.net (wingman) |
| Package Create Date: | 2015-11-12 |
| Package Last Update: | 2020-08-09 |
| Language: | PHP |
| License: | GPLv2 |
| Last Refreshed: | 2025-10-18 15:08:10 |
| Package Statistics | |
|---|---|
| Total Downloads: | 3,477 |
| Monthly Downloads: | 23 |
| Daily Downloads: | 0 |
| Total Stars: | 6 |
| Total Watchers: | 1 |
| Total Forks: | 6 |
| Total Open Issues: | 1 |
Generates password from 2 parts: first is random, but well-readable string, seocnd is a word from dictionary.
All options are in config file:
composer require ircop/passworder
Open config/app.php, and add to the providers array:
Ircop\Passworder\PassworderServiceProvider::class,
In the config/app.php. add to the aliases array:
'Passworder' => Ircop\Passworder\Facade\Passworder::class,
Run in the console:
./artisan vendor:publish --provider="Ircop\Passworder\PassworderServiceProvider"
Config will be moved to /config/passworder.php
Code:
for( $i=0; $i<10; $i++ ) {
echo \Passworder::gen()."<br>";
}
Config:
'random_uppercase' => true,
'uppercase_chance' => 1, # 0-9
'add_numbers' => true,
'number_chance' => 5, # 0-9
'delimeters' => '-_!@%.#',
Output:
sobmu.heat
Rupke4.print
bistO2-doubt
penga#agree
TambU8#papeR6
RamdA!woman
tebPU-sleep
dogke.wOuNd4
Todki!linen
nanrO.WoRk6