martbock/laravel-diceware
Generate secure, memorable diceware passphrases in Laravel. This package offers a simple API for creating word-based passwords from diceware wordlists, with configurable word counts, separators, and multiple languages. Ideal for user-friendly, high-entropy credentials.
Str::random() call.Adopt when:
Look elsewhere (or build in-house) when:
To executives: This is a small, low-risk dependency that lets us issue passwords people can actually read and repeat — think onboarding invites and support-assisted resets. The new v2.1.0 release adds Laravel 10 support, so it stays compatible with our framework upgrade path. No new features, no breaking changes, no migration work. Cost of adoption is minimal; the main caveat is that it is a single-maintainer package, so we should treat it as a convenience wrapper over well-understood crypto primitives, not a critical-path security control.
To engineering: v2.1.0 is a compatibility release — Laravel 10 support only, no API changes, no deprecations, no action required beyond the normal upgrade. The package provides a facade over EFF-style Diceware passphrase generation with a configurable word count and CSPRNG backing. It solves exactly one problem — generating human-transcribable secrets — and does not handle validation, hashing, storage, or policy. Entropy is a function of word count and wordlist size; set the count per surface and document the reasoning. Because the scope is narrow and the maintainer count is one, recommend wrapping it behind an internal PassphraseGenerator interface so we can swap or vendor it without touching call sites.
How can I help you explore Laravel packages today?