PHPackages                             looplinguist/random-password-generator - 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. looplinguist/random-password-generator

ActiveLibrary

looplinguist/random-password-generator
======================================

This Laravel package serves to generate random passwords tailored to your specific requirements. It offers a range of options, including passwords with symbols, numbers only, characters only, mixed lowercase and uppercase letters, non-symbol passwords, or combinations of digits and characters. You can customize the password generation process to suit your application's security needs effectively.

v1.0.1(1y ago)1430↓33.3%MITPHPPHP ^8.0

Since Jul 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/LoopLinguist/random-password-generator)[ Packagist](https://packagist.org/packages/looplinguist/random-password-generator)[ Docs](https://github.com/LoopLinguist/random-password-generator)[ RSS](/packages/looplinguist-random-password-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Random Password Generator for Laravel Applications
==================================================

[](#random-password-generator-for-laravel-applications)

This Laravel package serves to generate random passwords tailored to your specific requirements. It offers a range of options, including passwords with symbols, numbers only, characters only, mixed lowercase and uppercase letters, non-symbol passwords, or combinations of digits and characters. You can customize the password generation process to suit your application's security needs effectively.

### It provides the following features:

[](#it-provides-the-following-features)

- Including symbols: Users can choose to include symbols in the generated password.
- Only numbers: Users can opt for passwords consisting of numbers only.
- Only characters: Users can generate passwords with alphabetic characters only.
- Non-symbol passwords: Users can choose to generate passwords without any symbols.
- Digits and characters only: This option allows generating passwords with digits and alphabetic characters only.

Once the parameters are provided, the function creates a random password that satisfies the specified requirements. It ensures that the generated password meets the security standards for Laravel applications.

### Example usage

[](#example-usage)

#### Default Method:

[](#default-method)

```
use LoopLinguist\RandomPasswordGenerator\GeneratePassword;

    //  ...

   $generatePassword = new GeneratePassword();
   $generatedPassword = $generatePassword->generatePassword();
```

**Example Output**

```
q5%tZp_AYQ!Q
```

#### To generate passwords consisting of only digits and a mix of lowercase and uppercase letters:

[](#to-generate-passwords-consisting-of-only-digits-and-a-mix-of-lowercase-and-uppercase-letters)

```
use LoopLinguist\RandomPasswordGenerator\GeneratePassword;

    //  ...

   $generatePassword = new GeneratePassword();
   $generatePassword
        ->removeSymbols(false);
   $generatedPassword = $generatePassword->generatePassword();
```

**Example Output**

```
Vm5bdQaPDFMd
```

###### Available methods

[](#available-methods)

Here, you have the flexibility to exclude characters of digits, uppercase letters, numbers, or symbols.

```
removeUppercase();     // To exclude UpperCase, this method.
removeLowercase();     // To exclude LowerCase,this method.
removeNumbers();       // To exclude Numbers,this method.
removeSymbols();       // To exclude Symbols,this method. - You can set your required symbols in the config file.
removeAvoidSimilar();  // To Include Similar characters (`iIl1Oo0`),this method.

```

###### Available methods - Requirements Based Strict

[](#available-methods---requirements-based-strict)

Here, you have the flexibility to specify the number of characters for password generation, or you can enforce a requirement that the password must contain at least 'n' characters of digits, uppercase letters, numbers, or symbols.

```
setLength(12);          // Pass the desired number to set password length.
upperCaseRequired();    // Pass the desired number to set Fixed UpperCase length - empty will be considered as a length 1.
lowerCaseRequired();    // Pass the desired number to set Fixed LowerCase length - empty will be considered as a length 1.
numbersRequired();      // Pass the desired number to set Fixed Number length - empty will be considered as a length 1.
symbolsRequired();      // Pass the desired number to set Fixed Symbol length - empty will be considered as a length 1.

```

Publish the config file with:

```
php artisan vendor:publish --tag=random-password-generator-config
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~322 days

Total

2

Last Release

706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ee04817d0e7aee75d4b7421645ca57442801ce8c7a1cf410b8d9033d19fe185?d=identicon)[LoopLinguist](/maintainers/LoopLinguist)

---

Tags

looplinguistrandom-password-generator

### Embed Badge

![Health badge](/badges/looplinguist-random-password-generator/health.svg)

```
[![Health](https://phpackages.com/badges/looplinguist-random-password-generator/health.svg)](https://phpackages.com/packages/looplinguist-random-password-generator)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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