adadgio/gear-bundle
Symfony bundle providing API endpoint annotations with pluggable authentication (basic or custom provider services). Includes utilities like Node-RED connectors/loops, CSV export/import, entity hydration from data, and serializer helpers.
spatie/array-to-object, league/csv, laravel/sanctum) that are actively maintained and Laravel-optimized.symfony/http-foundation in Laravel), adding complexity.auth:api) or packages like tylerjrichards/laravel-http-basic-auth, reducing dependency.Illuminate\Support\Str, Illuminate\Support\Arr, and packages like spatie/array-to-object offer superior maintainability.Why Not Native/Laravel Alternatives?
spatie/laravel-csv, fruitcake/laravel-cors) without monolithic dependencies?Deprecation Strategy
Node-RED Dependency
Long-Term Cost
@Route with Laravel’s #[Route] (PHP 8+).AuthProvider as a Laravel service bound to the container.EventDispatcher with Laravel’s Events and Listeners.Adadgio\GearBundle\Component\Api\Authenticator with Laravel\Sanctum\PersonalAccessToken.HttpFoundation as a compatibility layer (e.g., for request/response handling).league/csv, auth → laravel/sanctum).Symfony\Component\HttpFoundation\Request → Illuminate\Http\Request).composer.json.| Phase | Task | Dependencies |
|---|---|---|
| 1. Feature Mapping | Identify Laravel-native alternatives for each bundle feature. | None |
| 2. Proof of Concept | Test a minimal wrapper (e.g., CSV reader) in a Laravel app. | league/csv for comparison |
| 3. Dependency Isolation | Containerize the bundle (Docker) to limit impact on Laravel core. | Docker, CI/CD pipeline |
| 4. Incremental Replacement | Replace one feature at a time (e.g., auth → Sanctum). | Laravel ecosystem packages |
| 5. Deprecation | Phase out bundle usage as replacements stabilize. | Feature parity validation |
EventDispatcher when Laravel’s Events suffice).| Risk | Impact | Mitigation Strategy |
|---|---|---|
| Bundle Abandonment | No updates → security vulnerabilities (e.g., auth bypass). | Isolate in a micro-service; monitor forks. |
| Laravel Ecosystem Drift | Bundle breaks with Laravel minor updates (e.g., PHP 8.1 features). | Use strict version pinning in composer.json. |
| Node-RED Dependency | Node-RED server downtime halts Laravel workflows. | Implement fallback queues (Laravel). |
| CSV/Serialization Errors | Malformed data breaks hydration/export logic. | Add input validation (e.g., Laravel Form Requests). |
| Symfony-Laravel Conflicts | Class collisions (e.g., Request objects). |
Use aliases or ** |
How can I help you explore Laravel packages today?