lag / adminbundle
Generic admin bundle for Symfony2 from L'arrière-guichet
Installs: 5 817
Dependents: 2
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 1
Open Issues: 30
Type:symfony-bundle
Requires
- php: ^7.2
- babdev/pagerfanta: ^2.4
- johnkrovitch/configuration: ^1.4
- johnkrovitch/orm-pack: ^2.0
- knplabs/knp-menu-bundle: ^3.0
- lag/string-utils: ^1.2
- sensio/framework-extra-bundle: ^4.4|^5.4
- symfony/dependency-injection: ^4.4|^5.1
- symfony/event-dispatcher: ^4.4|^5.1
- symfony/form: ^4.4|^5.1
- symfony/framework-bundle: ^4.4|^5.1
- symfony/security-bundle: ^4.4|^5.1
- symfony/serializer: ^4.4|^5.1
- symfony/translation: ^4.4|^5.1
- symfony/twig-bundle: ^4.4|^5.1
- twig/twig: ^3.0
Requires (Dev)
- dg/bypass-finals: ^1.1
- nyholm/symfony-bundle-test: ^1.6
- php-parallel-lint/php-var-dump-check: ^0.5
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^4.0|^5.0|^6.0
- symfony/console: ^4.0|^5.1
- symfony/debug-bundle: ^5.1
- symfony/monolog-bundle: ^3.5
- symfony/var-dumper: ^4.4|^5.1
- symfony/webpack-encore-bundle: ^1.7
This package is auto-updated.
Last update: 2023-03-04 10:56:19 UTC
README
AdminBundle
The AdminBundle let you create a flexible and robust backoffice on any Symfony application, with simple yaml
configuration.
It eases the handling of CRUD views by configuring Admin
objects on top of your Doctrine entities. Each Admin
has one or many Action
.
By default, the four actions of a classical CRUD are available (create
, edit
, delete
and list
) and the creation of custom actions is easy.
If you require more flexibility, you can easily override any part of the process (data providers, controllers, views...). The purpose of the bundle is to provide an Admin interface with default configuration, and allows the user to add his specific need where he wants, and allow to implement any specific needs without any hassles.
Features
- Dynamic CRUD for your entities (no code generation)
- Simple yaml configuration
- List with pagination, sorting and filters
- Menus integrations
- Fully customizable (use your own controllers, data providers or templates)
- Bootstrap 4 integration (can be disabled or override)
Installation
Step 1: Install the Bundle
Open a command console, execute the following command in your project directory to install the latest stable version of the bundle:
composer require lag/adminbundle
If you do not use flex, read the extra steps to install the bundle
Step 2: Configure the routing
Import the routing configuration to have the admin generated routes :
# config/routes.yaml lag_admin: resource: '@LAGAdminBundle/Resources/config/routing/routing.yaml' prefix: /admin
Step 3 : Configure an entity
# config/packages/lag_admin.yaml lag_admin: application: title: My Little TaunTaun application
# config/admin/resources/article.yaml article: entity: App\Entity\Article actions: create: ~ edit: ~ list: ~ delete: ~
As new routes are dynamically created, the cache clearing is required (
symfony cache:clear
)
Now you could visit http://127.0.0.1:8000/admin/article/list
to see a list of your entities.
Yan can visit http://127.0.0.1:8000/app_dev.php/admin/
to see the homepage of your admin interface
Documentation
- How to use
- Customization
- a. Custom actions
- b. Custom render
- c. Custom data
- d. Custom routes and urls
- Reference
- a. Application configuration
- b. Admin configuration
- FAQ
- Configuration reference
Testing
To run the admin test suite, run the following :
make tests
Road map
v1.1
- Add dynamic id column (instead of required "id" column) to improve generic and handle multiple ids columns
v1.0
- Add more testing
History
Version 0.4 :
- Dynamic CRUD for your entities (no code generation)
- Simple configuration in yml (look alike symfony1 generators.yml syntax)
- List with pagination, sorting and batch remove (filters are coming)
- Full translated
- Main and left menu integration
- Fully customizable (use your own controllers, data providers or templates)
- Bootstrap 3 integration (can be disabled or override)