jagilpe / entity-list-bundle
A Symfony Bundle for the creation and rendering of list of entities
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6.0
- doctrine/collections: >=1.0
- sensio/framework-extra-bundle: ^3.0
- symfony/framework-bundle: >=2.3
- symfony/options-resolver: >=2.3
- symfony/twig-bundle: >=2.3
Requires (Dev)
- phpunit/phpunit: ^5.5
- symfony/yaml: >=2.3
This package is not auto-updated.
Last update: 2024-11-04 07:45:39 UTC
README
EntityListBundle is a Symfony Bundle for for building and rendering lists of entities.
Installation
You can install the bundle using composer:
composer require jagilpe/entity-list-bundle
or add the package to your composer.json file directly.
To enable the bundle, you just have to register the bundle in your AppKernel.php file:
// in AppKernel::registerBundles() $bundles = array( // ... new Jagilpe\EntityListBundle\JagilpeEntityListBundle(), // ... );
Finally you have to include the provided javascript file somewhere in your base template. If you use assetic to manage the assets:
{% block javascripts %} {{ parent() }} {% javascripts 'bundles/jagilpeentitylist/js/jgp-searchable-table.js' %} <script src="{{ asset_url }}"></script> {% endjavascripts %} {% endblock %}
This javascript depends on jQuery, List.js (>=1.5.0). Please refer to jQuery and List.js documentation for instructions on how to enable it in your project.
Documentation
You can read the documentation of the usage of the bundle here
You can also see a demo of this bundle in https://demos.gilpereda.com/symfony-bundles/entity-list/ or directly download the demo from https://github.com/jagilpe/bundles-demo