Download the PHP package danilovl/entity-data-list-console-bundle without Composer

On this page you can find all versions of the php package danilovl/entity-data-list-console-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package entity-data-list-console-bundle

phpunit downloads latest Stable Version license

EntityDataListConsoleBundle

About

This is a Symfony bundle providing a console command designed to render database data for a specified doctrine entity in a tabular format.

The command is highly flexible, allowing developers to configure which fields to display, handle related associations, and apply pagination using options like --limit and --offset.

Requirements

1. Installation

Install danilovl/entity-data-list-console-bundle package by Composer:

2. Command overview

The abstract class EntityDataListCommand provides a base for creating commands that retrieve and display data for doctrine entities.

The OrmEntityDataListCommand is a concrete implementation registered as a Symfony console command under the name:

3. Features

4. Usage

To list the data of a specific entity:

4.1 Options

--entity (required argument):

Specifies the fully qualified class name of the doctrine entity to query (e.g., App\Entity\User).

--limit (optional):

Limits the number of rows retrieved. Default: 10.

--offset (optional):

Skips the specified number of rows before starting the result set. Default: 0.

--associations-ignore (optional):

Specifies associations (e.g., OneToMany, ManyToOne) to ignore during rendering.
Provide a comma-separated list of association field names.
Default: value returned by getAssociationsIgnore().

--associations-limit (optional):

Limits the number of items rendered for associations (e.g., child entities in OneToMany relationships).
Default: value returned by getAssociationsLimit().

Example Commands

5. Extending the command

The EntityDataListCommand provides a flexible foundation for building custom commands tailored to specific doctrine entities.
By extending this base command, you can customize the behavior to suit your application's needs.

Here are the steps to create and extend your own entity data listing command:

Run your custom command:

5. Gedmo

If your project utilizes the Gedmo\Translatable extension to manage translations for entities, you can leverage the OrmTranslatableEntityDataListCommand class to handle translatable entities in console commands.

This command ensures that the correct translation locale is set before querying data, allowing you to easily render localized data from the database.

5.1 Important note

The default locale is set to en (English).
If your project uses a different default locale (e.g., en, fr), you need to override the getLocale() method in your custom command to set the appropriate default.

`

5.2 How to use

Create your custom command class and extend OrmTranslatableEntityDataListCommand.

Run your custom command:

License

The EntityDataListConsoleBundle is open-sourced software licensed under the MIT license.


All versions of entity-data-list-console-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
symfony/framework-bundle Version ^7.0
doctrine/doctrine-bundle Version ^2
symfony/console Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package danilovl/entity-data-list-console-bundle contains the following files

Loading the files please wait ....