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
Entity Data List Console Bundle

Entity Data List Console Bundle Laravel Package

danilovl/entity-data-list-console-bundle

Symfony bundle adding a console command to list Doctrine ORM entity records in a formatted table. Configure which fields and associations to display, with automatic date formatting and pagination via --limit and --offset. Works by passing the entity class name.

View on GitHub
Deep Wiki
Context7

Symfony bundle providing a console command to display doctrine entity data.

Frequently asked questions about Entity Data List Console Bundle
Can this package work with Laravel’s Eloquent ORM instead of Doctrine?
No, this package is built for Doctrine ORM and won’t work natively with Eloquent. You’d need to rewrite the query logic or add Doctrine ORM as a dependency, which increases complexity. For Eloquent, consider Laravel Tinker or Scout for ad-hoc queries.
How do I install this in a Laravel project if it’s a Symfony bundle?
This bundle isn’t Laravel-native, but you can install it via Composer (`composer require danilovl/entity-data-list-console-bundle`). However, you’ll need to manually adapt it for Laravel’s Artisan commands and service container, or use Doctrine ORM alongside Eloquent.
What Laravel versions does this package support?
This package is designed for Symfony 8.0+, but Laravel compatibility isn’t guaranteed. It may work with Laravel 10+ if you manually bridge Symfony’s console commands to Artisan, but Eloquent support requires customization.
How do I customize which fields or associations are displayed?
The bundle uses YAML/JSON configuration to define fields and associations. In Symfony, this is handled via `config/packages/danilovl_entity_data_list.yaml`. In Laravel, you’d need to replicate this config structure or subclass the command for custom logic.
Does this support CSV or JSON output for data exports?
No, this package only outputs formatted tables to the CLI. For CSV/JSON exports, you’d need to extend the command or use Laravel’s built-in tools like `collect()` and `toCsv()` after fetching data.
Is there a way to handle translatable fields (e.g., Gedmo Translatable) in Laravel?
Gedmo Translatable relies on Symfony’s event system, which isn’t natively supported in Laravel. You’d need to replace it with Laravel’s `spatie/laravel-translatable` or manually manage locale context in the command.
How do I register this command in Laravel’s Artisan?
Since this uses Symfony’s autowiring (`#[AsCommand]`), you’d need to manually register it in Laravel via `Artisan::command()` or create a custom command resolver. Alternatively, use Symfony’s console facade if you’re already integrating Symfony components.
What’s the performance impact of fetching large datasets with --limit?
The default `--limit=10` is safe, but for large datasets, you should optimize queries (e.g., add `select()` clauses) or use Laravel’s chunking/cursor methods. The bundle doesn’t enforce query optimization, so manual tweaks may be needed.
Are there alternatives for Laravel that offer similar functionality?
For Eloquent, use `php artisan tinker` or `php artisan scout:inspect`. For Symfony-like CLI tools, consider `symfony/console` facade or packages like `spatie/laravel-command`. If you need Doctrine, this bundle is a solid choice but requires adaptation.
How do I test this package in a Laravel environment?
The package lacks Laravel-specific tests, so you’d need to mock Symfony dependencies (e.g., `ClassMetadata`) and adapt the command for Laravel’s service container. Start with a simple entity test in `phpunit.xml` and verify CLI output matches expectations.
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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours