PHPackages                             lucasvdh/passworder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lucasvdh/passworder

ActiveLibrary

lucasvdh/passworder
===================

Human-readable password generator (dutch version)

1183PHP

Since Aug 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lucasvdh/passworder)[ Packagist](https://packagist.org/packages/lucasvdh/passworder)[ RSS](/packages/lucasvdh-passworder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dutch human-friendly password generator
=======================================

[](#dutch-human-friendly-password-generator)

Generates password from 2 parts: first is random, but well-readable string, second 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\]

Wordset
=======

[](#wordset)

This package uses a wordset to generate passwords. These words are located in `/config/wordset.txt` after `php artisan vendor:publish`. If you want a customized wordset, change this file.

The current wordset was aquired from [OpenTaal](http://www.opentaal.org/), minus all words that are shorter than 4 characters, are abbreviations, contain numbers, contain white space or contain special characters.

Install
=======

[](#install)

### 1: install via composer:

[](#1-install-via-composer)

```
composer require lucasvdh/passworder

```

### 2: add service provider:

[](#2-add-service-provider)

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

```
Lucasvdh\Passworder\PassworderServiceProvider::class,

```

### 3: add facade alias:

[](#3-add-facade-alias)

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

```
'Passworder' => Lucasvdh\Passworder\Facade\Passworder::class,

```

### 4: Publishing config:

[](#4-publishing-config)

Run in the console:

```
php artisan vendor:publish

```

Config will be moved to /config/passworder.php

Usage examples:
===============

[](#usage-examples)

Code:

```
$start = microtime(true);
for( $i=0; $i true,
	'uppercase_chance' => 1,        # 0-9
	'add_numbers' => true,
	'number_chance' => 5,           # 0-9
	'delimeters'  => '-_!@%.#',

```

Output:

```
digcu
