netbull/auth-bundle
NetBull Auth Bundle is a PHP authentication package that bundles common login, user authentication, and access-control helpers into one integration. It helps reduce boilerplate and gives developers a straightforward starting point for securing applications with reusable components and configurable a...
First, the framework reality check: despite the prompt framing you as a Laravel developer, netbull/auth-bundle is a Symfony bundle (the Bundle suffix and netbull namespace follow Symfony conventions). You cannot composer require it into a Laravel app and expect it to boot. Treat this assessment as "what would I need to know if I were porting these auth concepts into a Laravel app, or if I were the Symfony developer on a team that adopted it."
If you actually are working in Symfony:
composer require netbull/auth-bundle — but pin the version. The last release (v7.0.5, 2026-05-29) is again forward-dated depending on when you read this, and with 0 stars and 0 dependents you are the canary. v7.0.5 is a patch that only "added deprecation" — see Gotchas, because deprecation notices are an early signal that API surface is shifting.config/bundles.php (Symfony Flex should do this if the bundle ships a recipe, which is unlikely at this maturity — expect to add it manually).DependencyInjection/Configuration.php before writing any YAML. That class is the authoritative source of truth for config keys — the README is likely stale or thin. Look here first, not at the README.Resources/config/ (or config/) for the service definitions and Routing/ or Controller/ for exposed endpoints. Your first real use case is almost certainly: wire the bundle's user provider and firewall authenticator into config/packages/security.yaml, then hit the login route with a test user.For a Laravel developer the "first use case" is really a research spike: read the bundle's controllers and event listeners, map each to a Laravel analogue (Guard, Auth::attempt, Sanctum/Passport, Password::sendResetLink), and decide whether to reimplement rather than depend.
security.yaml. Expect a custom UserProvider, an Authenticator (Symfony 5.3+ authenticator-based security) or a legacy guard, and a firewall entry. Configure the firewall, then the provider, then the bundle's own options — order matters because the bundle usually reads security.firewalls.* at container compile time.LoginEvent, RegistrationEvent, PasswordResetRequestEvent) via EventDispatcherInterface. The idiomatic pattern is to subscribe to those rather than override controllers — override controllers only as a last resort, because they change between minor versions.User model or interface. Extend it in src/Entity/User.php, register the mapping, and run migrations. Do not reuse the bundle's own entity table blindly in production; copy the schema into your app's migrations so you control it.Guard/middleware; "event subscribers" → EventServiceProvider listeners; "user provider" → EloquentUserProvider; "token manager" → Sanctum personal access tokens or tymon/jwt-auth. You'll get 90% of the value in a fraction of the abstraction.vendor/netbull/auth-bundle source directly; it will be your primary documentation.7c5c7a8), with no feature or behavioural notes. On a package this immature that usually means a config key, service ID, or method is being phased out ahead of a rename/removal — exactly the churn surface you're exposed to. Read the actual deprecation trigger in the source (grep for E_USER_DEPRECATED / trigger_deprecation / @deprecated) before you write against anything new, and don't assume the deprecation is cosmetic just because it shipped as a patch bump.composer.json ("netbull/auth-bundle": "7.0.5") and read the changelog and the diff before every bump — a deprecation-only patch like this one can still remove the very hook you relied on in a subsequent minor.bin/console debug:container --tag=security.authenticator and bin/console debug:config netbull_auth (name may differ; get the extension alias from DependencyInjection/*Extension.php). Nine times out of ten the bundle config is loaded but the firewall isn't pointing at the authenticator. If v7.0.5's deprecation is config-related, debug:config will warn you if you're still using the deprecated path.KernelTestCase/WebTestCase and hit the login route end-to-end. Don't unit-test the bundle internals; you'll be testing their code, not yours, and it will break on upgrade. After bumping to v7.0.5, run the suite with deprecation reporting enabled (SYMFONY_DEPRECATIONS_HELPER=max[self]=0 or weak) so the new deprecation shows up as a failing assertion rather than a log line you never read.How can I help you explore Laravel packages today?