Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Password Generator

Password Generator Laravel Package

juststeveking/password-generator

A lightweight PHP package for generating secure, customizable passwords in Laravel or standalone projects. Configure length and character sets, generate readable or memorable passwords, and integrate with a simple API.

View on GitHub
Deep Wiki
Context7

Generate random, memorable passwords easily.

Frequently asked questions about Password Generator
How do I install juststeveking/password-generator in a Laravel app?
Install it with composer require juststeveking/password-generator. On modern Laravel versions the service provider and facade should be auto-discovered, so no manual registration is normally needed. You do not need migrations, credentials, or config publishing to generate a first password. The same Composer package can also be used in standalone PHP projects.
Does juststeveking/password-generator use a cryptographically secure random generator?
The package is presented as a secure password generator, but the provided technical evaluation says CSPRNG usage must be verified by reading the generator source, not the README. Look for random_int or random_bytes and confirm there is no silent fallback to rand or mt_rand. Also check that composition is not done with str_shuffle, which is a common failure mode in hand-rolled generators. Treat that source review as a hard gate before using it on a security-sensitive path.
How do I generate a password with numbers, symbols, or spaces?
The fluent builder exposes toggles for length, numbers, symbols, and spaces, so you can enable only the character sets your policy allows. The package also advertises readable or memorable password generation alongside standard random strings. Check the README and source for the exact method names and defaults before wiring it into your app. Keep your own validation around the returned string if policy requires specific composition.
Is juststeveking/password-generator actively maintained?
The evidence shows a single maintainer, one release at 1.0.0 on 2022-11-16, 23 stars, and zero dependents. That is not automatically disqualifying for a small utility, but it means there is no visible security-patch path or recent PHP/Laravel modernization. Pin the version and be prepared to vendor or replace the code if it goes stale.
Should I use Laravel Str::password instead of this package?
If Laravel's native Str::password already satisfies your password policy, the evaluation is effectively over and the simplest answer is not to adopt another dependency. This package is most interesting when you want its fluent toggles, memorable-password style, or the same generator in Laravel and standalone scripts. Compare the native helper's length and character-set options against your policy before adding supply chain surface.
Which PHP and Laravel versions are supported?
The provided evidence does not include a supported-version matrix, and the only release dates to November 2022. You should inspect composer.json for PHP and illuminate/support constraints and run it against your current runtime and next upgrade target. Do not assume compatibility with newer PHP 8.3+ or recent Laravel releases without testing.
Can I use juststeveking/password-generator outside Laravel?
Yes. The package is framework-agnostic, with Laravel conveniences such as a facade and service provider layered on top. That means the same dependency can serve in-application call sites and standalone ops or CI scripts. No Laravel bootstrapping is required for the core generation path.
Does it guarantee character-class composition and minimum entropy?
The technical evaluation flags this as an open question: shuffle-from-pool generators often provide probabilistic class coverage rather than enforced per-class coverage. The evidence provided does not show a documented minimum length or entropy floor. Read the source to see whether it refuses to generate below a minimum and whether it guarantees enabled character classes. If it does not, you will end up writing the security-relevant composition logic yourself.
How do I test password generation in my Laravel test suite?
Do not assert an exact password value; assert properties instead, such as length, allowed character set, and the presence of enabled classes where the generator guarantees them. Wrap the package in your own small service so tests target your policy rather than a third-party API. If composition is only probabilistic, avoid brittle assertions that every enabled class must appear in one sample.
What are alternatives to juststeveking/password-generator?
Laravel's built-in Str::password is the first alternative to check, followed by a small random_int-based generator you control. Faker's password provider is convenient for fixtures but is not a security tool. This package makes sense mainly if its fluent toggles or memorable output save you real code and you have verified the RNG and composition behavior.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core