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

Avlist Bundle Laravel Package

appventus/avlist-bundle

View on GitHub
Deep Wiki
Context7

Easily make paginate and orderable list in Symfony2

Frequently asked questions about Avlist Bundle
Can I use AvListBundle directly in Laravel without Symfony?
No, AvListBundle is tightly coupled to Symfony2 and won’t work natively in Laravel. You’d need to rewrite core components (e.g., service container, Twig templates for Blade, and routing) or use a Symfony bridge, which adds significant complexity. Laravel’s ecosystem offers better alternatives like Eloquent or spatie/laravel-query-builder.
What Laravel alternatives provide declarative column-based listing like AvListBundle?
For Laravel, consider **spatie/laravel-data-tables** (for AJAX-driven tables) or **yajra/laravel-datatables** (jQuery-based). For simpler declarative lists, build a custom wrapper around Eloquent with Laravel’s pagination or use **laravel-query-builder** for advanced sorting/filtering. These avoid Symfony dependencies entirely.
How do I migrate AvListBundle’s Twig templates to Laravel’s Blade?
Manually convert Twig templates to Blade syntax (e.g., `{{ list.pager.nbResults }}` → `@if($list->pager->nbResults)`). For complex layouts, use a Twig-to-Blade converter tool or a bridge like **twig-laravel**, but expect edge cases. PagerFanta’s TwitterBootstrapView can be replaced with Laravel’s native pagination or **yajra/laravel-datatables** for consistency.
Does AvListBundle support Laravel’s Eloquent ORM instead of Doctrine?
No, AvListBundle relies on Doctrine QueryBuilder. To use Eloquent, you’d need to replace its query logic with a custom service provider wrapping Eloquent Builder or Query Builder. This requires significant refactoring, as the bundle’s core assumes Symfony’s EntityManager and repository patterns.
Is AvListBundle still maintained or safe for production use?
The bundle is **archived** (last release in 2016) and incompatible with modern Symfony (4+/5+) or PHP 8+. It poses **high deprecation risk**—Symfony2 is end-of-life, and no security patches are expected. For production, prioritize actively maintained Laravel packages like **spatie/laravel-query-builder** or **yajra/laravel-datatables**.
Can I use AvListBundle’s pagination (PagerFanta) in Laravel?
Yes, but replace the Symfony-specific parts. PagerFanta itself is framework-agnostic; you’d need to adapt its integration to Laravel’s request handling and use a Laravel-compatible view (e.g., Blade or a Twig bridge). For simpler pagination, Laravel’s built-in `paginate()` or **yajra/laravel-datatables** are lighter alternatives with better Laravel support.
How do I configure AvListBundle for custom sorting/filtering in Laravel?
AvListBundle’s sorting/filtering relies on Symfony’s Request and Router. In Laravel, you’d need to rewrite the logic to use Laravel’s `Request` facade and manually bind parameters to Eloquent queries. For a Laravel-native solution, **spatie/laravel-query-builder** or **yajra/laravel-datatables** offer built-in sorting/filtering with minimal boilerplate.
What’s the performance impact of using AvListBundle in Laravel via workarounds?
Workarounds (e.g., Twig bridges, custom service providers) introduce overhead due to framework translation layers. PagerFanta is efficient, but Laravel’s native pagination or **spatie/laravel-query-builder** may outperform it by avoiding Symfony abstractions. Benchmark alternatives like **yajra/laravel-datatables** for large datasets.
Are there Laravel packages that replicate AvListBundle’s column declarative syntax?
Not exactly, but you can achieve similar declarative power with **macros** or **custom helpers**. For example, wrap Eloquent queries in a service class to define columns dynamically, then render them in Blade. Packages like **laravel-query-builder** let you chain conditions declaratively, while **yajra/laravel-datatables** offers column configuration via JSON.
How do I handle AvListBundle’s AJAX responses in Laravel?
AvListBundle’s AJAX logic assumes Symfony’s Router and Twig rendering. In Laravel, you’d need to rewrite the controller to return JSON or Blade views using Laravel’s `Response` facade. For AJAX tables, **yajra/laravel-datatables** or **spatie/laravel-data-tables** provide built-in JSON responses with minimal setup, avoiding Symfony dependencies.
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