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
Security Bundle

Security Bundle Laravel Package

nti/security-bundle

nti/security-bundle is a Laravel/PHP security package that provides reusable helpers for authentication, authorization, and common hardening tasks, helping teams centralize access control and protect application routes and resources.

View on GitHub
Deep Wiki
Context7

nti/security-bundle is a PHP package that bundles common security concerns into a single, reusable component for Symfony-style applications. It centralizes authentication and access control configuration so security logic stays consistent across projects instead of being duplicated in each one.

  • Centralized security configuration for authentication and authorization rules
  • Pluggable user providers and credential checking
  • Role- and attribute-based access control helpers
  • Reusable service definitions for dependency injection
  • Lightweight footprint with minimal dependencies

The package is early-stage and lightly adopted, so review the source and test coverage before relying on it in production.

Frequently asked questions about Security Bundle
Is nti/security-bundle a Laravel package?
No. It is a Symfony bundle (NTISecurityBundle) whose integration contract is Symfony's bundle system: a Bundle subclass, a DI extension with a configuration tree, compiler passes, and very likely a dependency on symfony/security-bundle. Laravel does not expose those extension points, so the package cannot be installed and used in a Laravel app the way a normal Composer package can.
How do I install nti/security-bundle in a Laravel app?
You cannot install it in any meaningful sense. Composer may resolve the PHP code, but the bundle registration, YAML configuration tree, and firewall wiring will never run inside Laravel. A Laravel path means vendoring the source, extracting the few classes that carry real domain logic, and re-registering them in your own service provider. Budget this as a small internal adapter package, not a one-line install.
What does nti/security-bundle actually do?
It provides security-focused utilities and configuration for Symfony applications, aimed at centralizing access control, hardening, and common security settings. The practical value is usually concentrated in a handful of concrete services such as password policy validators, password history and rotation checks, user lifecycle helpers, and audit hooks. Those are plain PHP classes that assume a container and a config array, which is what makes any porting discussion possible at all.
Can I use a Symfony bundle in a Laravel application?
Only by porting the code, not by installing the bundle. Laravel ships individual symfony components such as console and http-foundation, but it does not ship symfony/security-bundle, so firewalls, user providers, authenticators, token storage, and password hashers from Symfony are simply absent. Any bundle feature that resolves services by Symfony service ID or extends the security layer will not travel.
Which parts of nti/security-bundle can be ported to Laravel?
The portable parts are plain PHP domain services that do not depend on Symfony's security layer, such as password policy validation, password history and rotation checks, user lifecycle helpers, and audit hooks. You would drop the bundle scaffolding, rebind the configuration to config/security.php, and bridge the logic to Laravel's Auth and Password brokers. Anything firewall-level, such as custom authenticators or token storage, would need a rewrite rather than a port.
Does nti/security-bundle support Laravel 11, PHP 8.3, and Symfony 7?
Laravel version support is not declared because this is not a Laravel package, so there is nothing to support. Its Symfony major-version posture is also unknown, and a bundle last released in April 2024 may already lag Symfony 7.x and PHP 8.3 or 8.4 constraints. Check the composer.json constraints directly before assuming compatibility with your stack.
How is nti/security-bundle configured?
In Symfony it is configured through config/bundles.php plus a YAML or PHP config block driven by the bundle's Configuration tree. There is no Laravel equivalent for that tree, so any Laravel integration would have to recreate the relevant options in config/security.php inside an adapter. That means configuration compatibility is something you build, not something you inherit.
Is nti/security-bundle safe to use for authentication in production?
The assessment flags high provenance risk: zero stars, zero dependents, single-vendor ownership, and no public audit trail or disclosed security-disclosure process. A silent authentication or password-policy bypass is materially worse than an outage, and you would be the only party reviewing it. If your target stack is Symfony, treat it as a routine low-risk dependency decision; if your target is Laravel, you are effectively porting unmaintained auth code and should make that an explicit, reviewed decision.
What Laravel-native alternatives should I use instead?
For access control use Laravel's built-in Auth, Gate, and Policy features, and use the Password broker plus validation rules for password policy and rotation. If you specifically need the bundle's domain logic, fork the small set of logic classes into an internal adapter rather than pulling in the bundle. The package itself is not a Laravel alternative and should not be evaluated as one.
Is nti/security-bundle actively maintained and tested?
The signals point to low maturity: no external consumers, no ecosystem pressure-testing, single-vendor ownership, and unknown test coverage. The last release noted is 2024-04-12, and there is no indication of a security-disclosure process. Ask the vendor for coverage numbers and whether they would accept patches for non-Symfony consumers before depending on it.
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