- Can I install amorebietakoudala/stimulus-controller-bundle in a Laravel app with Composer?
- No, not as a working Laravel dependency. The package is a Symfony bundle whose PHP layer depends on Symfony form types, bundle service registration, and the Webpack Encore bridge. Laravel does not provide those integration points, so Composer may resolve it but the Symfony wiring will not function in a normal Laravel app. Treat it as source code to vendor, not as a package to require.
- What does this package actually provide?
- It has two layers: a set of Stimulus.js controllers for common admin UI interactions and Symfony/Twig plumbing that auto-registers them through Webpack Encore. The controllers handle confirm-before-delete row actions, delete return URLs, collection add/remove rows, form-action swapping, Select2 and datetime-picker wiring, and readonly-field removal. The JavaScript communicates through data attributes and DOM events, so that layer is framework-agnostic.
- Does it work with Laravel Vite and Blade?
- The controller JavaScript can work with Vite and Blade because it only relies on Stimulus and DOM data attributes. The package's Encore bridge and Symfony service registration are dead weight in Laravel and should be ignored. Port the controllers into resources/js/controllers and register them with @hotwired/stimulus through laravel-vite-plugin.
- Which Stimulus controllers are included?
- The reusable set covers table row actions with confirmation, entity delete with return-URL handling, add and remove collection rows, swapping form actions, Select2 wiring, datetime-picker wiring, and removing readonly fields. If your design system already standardizes form controls, the Select2 and datetime controllers may be unusable. The remaining confirm, collection, and action-swapper controllers are the most portable core.
- Is it compatible with Laravel 10 or Laravel 11?
- There is no declared Laravel compatibility because this is a Symfony bundle, not a Laravel package. Its PHP floor is 7.2.5+ and it depends on webpack-encore-bundle ^1.11 || ^2.1, neither of which maps to Laravel 10/11 defaults. For Laravel 10 or 11, compatibility is limited to running the vendored Stimulus controllers under @hotwired/stimulus 3.x with Vite.
- Do I need Webpack Encore to use the controllers?
- You need Encore only for the Symfony auto-registration layer. The Stimulus controllers themselves are plain JavaScript and do not require Encore, Symfony, or Twig. In Laravel, register them through Vite and @hotwired/stimulus instead of adopting the package's asset pipeline.
- How much work is it to port this into a Laravel app?
- Plan on a source-level port of roughly 4 to 6 controllers into resources/js/controllers, plus markup changes to add the expected data attributes. The estimate from the technical review is about 200 to 400 lines of glue and template adjustments for the full set, or around 150 lines if you only need confirm, collection, and action-swapper behavior. Do not spend that effort unless the next two quarters have several admin stories that need these interactions.
- What third-party UI dependencies does it bring?
- The controllers wrap Select2 and a datetime picker, and the datetime picker version was pinned repeatedly across releases. Those are hard UI dependencies if you use the related controllers. If your design system already chose different form controls, skip those controllers and vendor only the interactions that do not depend on third-party widgets.
- Is this package safe and well maintained for production?
- Adoption signals are effectively zero: no stars, no dependents, a single maintainer, and no visible tests or CI. Releases include behavior changes and security or dependency patches in patch and minor versions, so you would own the churn if you require it. The technical review recommends treating it as MIT-licensed sample code to fork and own rather than as a supplier dependency. Also verify the tag history before citing maturity, because the listed latest release date appears ahead of today.
- Should I use this instead of Alpine.js or Livewire in Laravel?
- If Stimulus is not already in your Laravel stack, this bundle is not a good reason to adopt it. Alpine.js or Livewire are usually the cheaper fit for Laravel admin interactions because they align with the ecosystem and avoid porting Symfony-oriented glue. If Stimulus is already present, vendor the few controllers you need; otherwise build the small interactions in-house.