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 Bundle

Password Bundle Laravel Package

octave/password-bundle

A Symfony bundle for password handling: secure hashing, configurable strength and policy validation, and smooth migration of legacy hashes. Integrates with Symfony's security component to keep authentication modern and consistent across your application.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Password Bundle
Is octave/password-bundle compatible with Laravel?
No. It is a Symfony 4 bundle with Symfony-specific wiring such as Bundle subclasses, DI extensions, service definitions, and config trees that Laravel does not consume. Composer installation will likely fail on PHP and Symfony constraints against Laravel 10 or 11. Treat it as a reference implementation to read, not a library to install.
Can I install octave/password-bundle in a Laravel project via Composer?
Unlikely without --ignore-platform-reqs because it pins Symfony 4-era components and probably PHP 7.1, while Laravel 10 and 11 require Symfony 6 or 7 components and PHP 8.1 or newer. Forcing installation leaves you with an unmaintained dependency that has zero ecosystem validation. The realistic path is to audit the source and port the pure password-policy logic.
What does octave/password-bundle actually do?
It provides password hashing, configurable strength and policy validation, and migration of legacy hashes, integrated with Symfony's security component. Much of it is a thin layer over Symfony's PasswordEncoderInterface, which in turn wraps PHP's password_hash and password_verify functions. Only the pure password logic is portable to Laravel.
Does Laravel already have password hashing and policy validation built in?
Yes. Laravel ships Hash::make, Hash::check, Hash::needsRehash, and the Password validation rule with length, mixed-case, digits, symbols, uncompromised, and never-breach constraints. For most Laravel applications these cover the same ground as this bundle. Port only if you need unique policy logic such as password history, rotation, or expiration.
How do I migrate from octave/password-bundle to Laravel's hashing?
Extract the pure password-policy logic, which is roughly a few hundred lines at most, into framework-agnostic classes with no Symfony imports. Wrap them in a Laravel service provider bound to Illuminate\Contracts\Hashing\Hasher and expose configuration via config/password.php. Replace Symfony event subscribers with Laravel listeners or middleware where request-level enforcement is needed. Add tests covering hash round-trip, cost-factor changes, rehash-on-login, malformed-hash handling, and policy boundaries before production exposure.
Is octave/password-bundle safe for production password handling?
High risk. It has 0 stars, 0 dependents, no visible security advisory coverage, and no downstream users exercising it in production, which means no community code review or CVE watch. Password handling is security-critical, and the Symfony 4 baseline has been end-of-life since November 2023. Also verify it delegates to PHP's password_* functions rather than hand-rolling crypto, since anything hand-rolled is an immediate disqualifier.
What are the Laravel alternatives to octave/password-bundle?
Laravel's built-in Hash facade and Password validation rule are the primary alternatives. Use Hash::needsRehash and rehash-on-login in your authentication flow for legacy hash migration. If you need breach checking, Laravel's Password::uncompromised() covers it.
Does octave/password-bundle support Laravel 10 or Laravel 11?
No. It is a Symfony 4 bundle with constraints around symfony/* ^4.0 and likely PHP ^7.1, while Laravel 10 and 11 require Symfony 6 or 7 and PHP 8.1 or newer. It was not designed for Laravel and has no Laravel integration. Assume incompatibility until proven otherwise.
Should I add octave/password-bundle to composer.json for a Laravel service?
No. Do not add it as a direct dependency for a Laravel service because the framework mismatch and unmaintained Symfony 4 baseline create unnecessary risk. Position it in the architecture as an input artifact: source material for a small, internally owned PasswordPolicy service registered through a Laravel service provider. Audit, port, and test the pure logic instead.
What should I check before porting octave/password-bundle logic?
Check whether it delegates to PHP's password_hash and password_verify or implements cryptography itself, and whether comparisons are constant-time with failure paths free of user enumeration leaks. Confirm the license, last commit date, and PHP and Symfony constraint set. Identify unique policy logic such as history, rotation, expiration, or breach lists versus a simple wrapper. Then port only what Laravel does not already cover.
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource