PHPackages                             gabrielesbaiz/password-toolkit - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gabrielesbaiz/password-toolkit

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gabrielesbaiz/password-toolkit
==============================

A lightweight helper package to generate nice passwords.

1.5.0(2mo ago)02.4k↑850%MITPHPPHP ^8.0CI failing

Since Mar 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/gabrielesbaiz/password-toolkit)[ Packagist](https://packagist.org/packages/gabrielesbaiz/password-toolkit)[ Docs](https://github.com/gabrielesbaiz/password-toolkit)[ GitHub Sponsors]()[ RSS](/packages/gabrielesbaiz-password-toolkit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (18)Versions (9)Used By (0)

PasswordToolkit
===============

[](#passwordtoolkit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/93b4ab01e47e9a774a0f38cd086df5652f724ec0f8e0e0daa5e676c850fc31a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6761627269656c65736261697a2f70617373776f72642d746f6f6c6b69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gabrielesbaiz/password-toolkit)[![Total Downloads](https://camo.githubusercontent.com/42a767d92bc45c5011f3fa9e318eb847a3f362b20dce355cf430932d09527fa7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6761627269656c65736261697a2f70617373776f72642d746f6f6c6b69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gabrielesbaiz/password-toolkit)

A lightweight helper package to generate nice passwords.

Features
--------

[](#features)

- ✅ Password generator
- ✅ Name + adjective password style
- ✅ Higly customizable
- ✅ Works seamlessly with Laravel facades

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require gabrielesbaiz/password-toolkit
```

You can publish the config file with:

```
php artisan vendor:publish --tag="password-toolkit-config"
```

This is the contents of the published config file:

```
return [
    /*
     * Configuration for name types for people and things to be used
     */
    'name_types' => [
        'people' => [
            'back_to_the_future' => true,
            'cartoons' => true,
            'disney_characters' => true,
            'game_of_thrones' => true,
            'greek_mythology' => true,
            'harry_potter' => true,
            'italian_actors' => true,
            'italian_architects' => true,
            'italian_basketball_legends' => true,
            'italian_chefs' => true,
            'italian_comedians' => true,
            'italian_cyclists' => true,
            'italian_explorers' => true,
            'italian_fashion_designers' => true,
            'italian_film_directors' => true,
            'italian_football_legends' => true,
            'italian_musicians' => true,
            'italian_nobel_prize_winners' => true,
            'italian_opera_composers' => true,
            'italian_painters' => true,
            'italian_poets' => true,
            'italian_presidents_of_the_republic' => true,
            'italian_racing_drivers' => true,
            'italian_renaissance_artists' => true,
            'italian_scientists' => true,
            'italian_superheroes' => true,
            'italian_television_personalities' => true,
            'italian_writers' => true,
            'philosophers' => true,
            'pixar_characters' => true,
            'star_wars' => true,
        ],
        'things' => [
            'car_brands' => true,
            'italian_cheeses' => true,
            'italian_monuments' => true,
            'italian_regional_foods' => true,
            'italian_wines' => true,
            'coffee_brands' => true,
        ],
    ],

    /*
     * Defines the symbol used to separate words in the generated password.
     *
     * Can be any symbol or null if no separator is desired.
     */
    'separator_symbol' => '-',

    /*
     * Defines whether to replace spaces with the separator
     * symbol in the name part of the password.
     *
     * Options:
     * 'true' will replace spaces with the separator symbol
     * 'false' will remove spaces.
     */
    'name_separator' => true,

    /*
     * Determines if numbers should be added to the generated password.
     *
     * Options:
     * 'true' will add numbers
     * 'false' will not
     */
    'add_numbers' => true,

    /*
     * Specifies the number of digits for the random number
     * that will be added to the password (if enabled).
     */
    'numbers_digits' => 4,

    /*
     * Defines where to place the numbers in the password.
     *
     * Options:
     * 'start' - numbers are placed at the beginning of the password,
     * 'middle' - numbers are placed in the middle of the password,
     * 'end' - numbers are placed at the end of the password.
     */
    'numbers_position' => 'end',

    /*
     * Defines the level of leetspeak conversion to apply
     * to the generated password.
     *
     * Options:
     * 'no' - no leetspeak conversion,
     * 'basic' - apply basic leetspeak conversion,
     * 'advanced' - apply advanced leetspeak conversion.
     */
    'leetspeak_conversion' => 'no',
];
```

Usage
-----

[](#usage)

```
$passwordToolkit = new Gabrielesbaiz\PasswordToolkit();

echo $passwordToolkit->generate();
```

Using facade:

```
use PasswordToolkit;

PasswordToolkit::generate();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Gabriele Sbaiz](https://github.com/gabrielesbaiz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance86

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~94 days

Total

6

Last Release

67d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97040fb60637d4b81897347524bc9343ffa6b978d4b19c0c28ea0823e2a1752b?d=identicon)[gabrielesbaiz](/maintainers/gabrielesbaiz)

---

Top Contributors

[![gabrielesbaiz](https://avatars.githubusercontent.com/u/22818698?v=4)](https://github.com/gabrielesbaiz "gabrielesbaiz (11 commits)")

---

Tags

laravel-packagephplaravelGabriele Sbaizpassword-toolkit

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gabrielesbaiz-password-toolkit/health.svg)

```
[![Health](https://phpackages.com/badges/gabrielesbaiz-password-toolkit/health.svg)](https://phpackages.com/packages/gabrielesbaiz-password-toolkit)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
