PHPackages                             boutmad/randompassword - 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. boutmad/randompassword

ActiveLibrary

boutmad/randompassword
======================

A package for generating random passwords

14PHP

Since Oct 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AbdellahBoutmad/Password-generator)[ Packagist](https://packagist.org/packages/boutmad/randompassword)[ RSS](/packages/boutmad-randompassword/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

🎉 RandomPasswordGenerator
=========================

[](#-randompasswordgenerator)

A simple PHP package for generating random passwords with customizable options. Whether you need a secure password for your application or just want to test your systems, this package has got you covered! 🔐

---

✨ Features
----------

[](#-features)

- **Generate a single random password** with a specified length.
- **Generate multiple random passwords** at once for bulk usage.
- Options to **include special characters** for added security.
- Customizable length and character set to fit your needs.

---

🛠️ Usage
--------

[](#️-usage)

Here’s a simple example of how to use the **RandomPasswordGenerator** package in your PHP application:

```
require_once 'vendor/autoload.php';

use RandomPasswordGenerator\RandomPasswordGenerator;

// Create an instance of the password generator
$passwordGenerator = new RandomPasswordGenerator(12, true); // 12 characters with special chars

// Generate a single password
echo "Generated Password: " . $passwordGenerator->generatePassword() . "\n";

// Generate multiple passwords
$passwords = $passwordGenerator->generateMultiplePasswords(5);
echo "Generated Passwords: \n";
print_r($passwords);
```

📝 Configuration Options
-----------------------

[](#-configuration-options)

You can customize the password generation by providing different parameters:

- **Length**: Specify the length of the password (e.g., 8, 12, 16).
- **Special Characters**: Set to `true` or `false` to include or exclude special characters.

🛠️ Installation
---------------

[](#️-installation)

To install the boutmad/randompassword package using Composer, follow these steps:

- Run the following Composer command to install the package in your project:

```
composer require boutmad/randompassword
```

**Note**: If you encounter issues with stability, make sure your `composer.json` allows for `dev` versions by adding this to your `composer.json`:

```
{
    "minimum-stability": "dev",
    "prefer-stable": true
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b4e31b0988b2f81d89675f5c1f1164b6b50eec3fc7c61b728709c75d5c5a0c8?d=identicon)[boutmad](/maintainers/boutmad)

---

Top Contributors

[![AbdellahBoutmad](https://avatars.githubusercontent.com/u/148339843?v=4)](https://github.com/AbdellahBoutmad "AbdellahBoutmad (19 commits)")

### Embed Badge

![Health badge](/badges/boutmad-randompassword/health.svg)

```
[![Health](https://phpackages.com/badges/boutmad-randompassword/health.svg)](https://phpackages.com/packages/boutmad-randompassword)
```

PHPackages © 2026

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