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

Useful Bundle Laravel Package

acutex/useful-bundle

Symfony bundle providing handy extras for everyday projects: Ajax autocomplete, dependent entity and date-range form types, plus Doctrine DQL functions (IF, IFNULL, ROUND, DATE_DIFF). Can be used with SonataAdmin as filter types.

View on GitHub
Deep Wiki
Context7

Symfony 2 bundle with some useful things - custom form types, dql functions, twig extensions, etc...

Frequently asked questions about Useful Bundle
Can I use ShtumiUsefulBundle in Laravel? It’s a Symfony package.
No, this bundle is designed for Symfony and won’t work in Laravel without heavy refactoring. Laravel uses Eloquent, Blade, and its own service container, which are incompatible with Symfony’s Form Component and Doctrine DQL. Avoid dependency risks.
How do I replicate AJAX autocomplete in Laravel without this bundle?
Use Laravel’s Form Requests + JavaScript libraries like Select2 or Alpine.js. Create an API endpoint (e.g., `/search-users`) to fetch results dynamically. Libraries like Livewire or Inertia.js can simplify the integration.
What’s the Laravel alternative to the dependent filtered entity form type (e.g., country → region)?
Build dependent dropdowns with JavaScript event listeners or use Livewire components. Fetch regions via AJAX when a country is selected, or use a package like `spatie/laravel-activitylog` for structured data relationships.
Does Laravel support the DQL functions (IF, IFNULL, ROUND, DATE_DIFF) from this bundle?
No, Laravel uses Eloquent’s query builder. Replace DQL functions with raw SQL (e.g., `DB::raw('IFNULL(column, 0)')`) or Eloquent query scopes. For date differences, use Carbon (e.g., `$model->created_at->diffInDays()`).
Is ShtumiUsefulBundle actively maintained? Should I risk using it in production?
No, the bundle has no recent commits, zero stars, and no dependents. It’s effectively abandonware. Laravel-native solutions (e.g., Livewire, custom JS) are safer and more maintainable for production.
Can I integrate SonataAdminBundle’s filters with Laravel?
No, SonataAdminBundle is Symfony-only. For Laravel admin panels, use Laravel Nova, FilamentPHP, or custom Backpack for Laravel. Replicate filtering logic with Eloquent query scopes or API-driven search.
What’s the best way to handle date ranges in Laravel forms?
Use Laravel Carbon for backend validation and JavaScript libraries like Flatpickr or Vue Datepicker for frontend UX. Store ranges as strings (e.g., `YYYY-MM-DD to YYYY-MM-DD`) or Carbon objects in your database.
Are there Laravel packages for AJAX form types like this bundle?
Yes, consider `laravelcollective/html` for basic forms, `livewire/livewire` for reactive components, or `spatie/laravel-searchable` for autocomplete. For complex forms, build custom solutions with Laravel Mix or Vite.
How do I migrate from Symfony to Laravel if I rely on this bundle’s features?
Audit your use cases and replace each feature: Autocomplete → Alpine.js + API, Dependent Forms → Livewire, DQL → Raw SQL/Eloquent. Test thoroughly, as direct migration isn’t possible. Document changes for your team.
What are the risks of forking ShtumiUsefulBundle for Laravel?
High. The bundle’s architecture is tightly coupled to Symfony. Forking would require rewriting form types, DQL functions, and Doctrine integrations for Laravel’s ecosystem. Time and maintenance costs may outweigh benefits.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware