Weave Code
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
Bundle Helpers

Bundle Helpers Laravel Package

21torr/bundle-helpers

Helpers for Symfony bundles to streamline implementation. Provides shared utilities and conveniences for other bundles, reducing boilerplate and keeping bundle setup consistent and easier to maintain. Docs available online.

View on GitHub
Deep Wiki
Context7

Helper classes specifically designed to ease implementation of Symfony bundles.

Frequently asked questions about Bundle Helpers
Can I use 21torr/bundle-helpers in a pure Laravel project without Symfony?
No, this package is designed for Symfony bundles and requires Symfony components like `symfony/dependency-injection`. For Laravel, you’d need to create a wrapper layer or only adopt specific utilities (e.g., configuration parsing) if you’re already using Symfony in your stack.
How do I install this package in a Laravel project?
Run `composer require 21torr/bundle-helpers` and ensure your project meets the PHP 8.4+ requirement. Since Laravel doesn’t natively support Symfony bundles, you’ll need to build a custom adapter or use it only in hybrid architectures (e.g., Laravel frontend + Symfony backend).
What Laravel use cases justify adding this package?
Consider it for Laravel packages mimicking Symfony’s `BundleExtension` pattern (e.g., enforcing strict config validation) or hybrid apps where Symfony components are already integrated. It’s overkill for vanilla Laravel apps unless you’re standardizing config handling across multiple packages.
Does this package support Laravel’s ServiceProvider or Package tools?
Indirectly. While it’s Symfony-focused, you could adapt its `Extension::getConfiguration()` logic for Laravel’s `config/` files or package configurations (e.g., `spatie/laravel-package-tools`). However, no native Laravel integration exists—you’d need to write a facade or utility class.
Will this package slow down my Laravel application?
Only if you adopt Symfony’s dependency injection system, which adds ~10MB+ to your footprint. For isolated use (e.g., config parsing), the impact is minimal. Profile performance before full adoption, especially in high-traffic apps.
Are there Laravel alternatives to this package?
Yes. Laravel’s native `Config`, `ServiceProvider`, and `Package` APIs (e.g., `spatie/laravel-package-tools`) handle most use cases without Symfony dependencies. Only consider this if you need Symfony’s `BundleExtension` patterns or are building a hybrid Laravel/Symfony system.
How do I handle PHP 8.4+ requirements in an older Laravel project?
Upgrade your PHP version if possible, or fork the package and patch the type hints for backward compatibility. The package’s PHP 8.4+ requirement is strict, so test thoroughly if downgrading.
Can I use this for testing or CI/CD in Laravel?
Yes, but only if your tests or CI pipeline involves Symfony components. For pure Laravel testing, the package won’t provide direct benefits. Focus on its config validation or extension helpers if applicable to your workflow.
What’s the maintenance burden of integrating this into Laravel?
High. You’ll need to maintain a custom adapter layer to bridge Symfony and Laravel concepts (e.g., translating `BundleExtension` to Laravel’s `ServiceProvider`). Plan for updates to the underlying Symfony components and this package’s changes.
Is this package actively maintained? How do I check?
As of now, it has low GitHub activity and no dependents. Check the maintainer’s (@apfelbox) recent commits, issue responses, and Symfony compatibility updates. If reliability is critical, consider alternatives or fork the package for your needs.
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.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views