New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ircop/passworder

Human-readable password generator
4,082 6
Install
composer require ircop/passworder
Latest Version:v0.1.3
License:GPLv2
Last Updated:Aug 9, 2020
Links: GitHub  ·  Packagist
Maintainer: ircop

Human-friendly password generator

Generates password from 2 parts: first is random, but well-readable string, seocnd is a word from dictionary.

All options are in config file:

  • random_uppercase: make several letters uppercase [true/false]
  • uppercase_chance: chance to make letter uppercase. Applies for each letter. [0-9]
  • add_numbers: add or not numbers to password (to the end of both parts). [true/false]
  • number_chance: chance to add number [0-9]
  • words => [] : dictionary.

Install

1: install via composer:

composer require ircop/passworder

2: add service provider:

Open config/app.php, and add to the providers array:

Ircop\Passworder\PassworderServiceProvider::class,

3: add facade alias:

In the config/app.php. add to the aliases array:

'Passworder' => Ircop\Passworder\Facade\Passworder::class,

4: Publishing config:

Run in the console:

./artisan vendor:publish --provider="Ircop\Passworder\PassworderServiceProvider"

Config will be moved to /config/passworder.php

Usage examples:

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

Related Packages

lucasvdh/passworder

Human-readable password generator (dutch version)

18 1
gldrenthe89/nova-string-generator-field

A Laravel Nova field for generating a random string. This can be used for a Text...

79,418 5
minvws/horsebattery-laravel

A Laravel package for the horsebattery password generator

39,499 1
laravolt/password

Laravel password extended

9,617 4
robclancy/laravel4-hashing

Package for when you can't use Bcrypt in Laravel 4.

1,783 30

Version History

Version Released License
v0.1.3 GPLv2
v0.1.2 GPLv2
v0.1.1 GPLv2
v0.1 GPLv2