Download the PHP package elao/admin-bundle without Composer
On this page you can find all versions of the php package elao/admin-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elao/admin-bundle
More information about elao/admin-bundle
Files in elao/admin-bundle
Package admin-bundle
Short Description Simple, powerful and extendable admin bundle.
License MIT
Homepage https://github.com/Elao/ElaoAdminBundle
Informations about the package admin-bundle
Elao Admin Bundle
Write your controller once, use it for all your models.
What?
The AdminBundle helps you define reusable Actions that can be defined as route controllers for any model.
Why?
The AdminBundle improves your productivity when implementing similar controller behavior for several models, such as CRUD back-end.
How?
The AdminBundle declares Actions as abstract services, instanciates and configures one instance for each model and register the corresponding route in the Symfony router.
You just need to say "I want a list
of user
." and the AdminBundle register a /users
route that run a ListAction
instance configured to handle the User
model.
Design goals
The AdminBundle is meant to improve your productivity and remain flexible and extendable.
Installation
Require the bundle in Composer:
Install the bundle in your AppKernel:
Import the rounting in your routing.yml
configuration file:
Usage
Use a set of Actions:
- HTML Actions: For easily performing CRUD operations using Symfony forms.
- REST Actions: For building an Api through REST actions.
Or create your own set of actions!
Configuration
Configure some actions in your config.yml
:
Here's an example with some action provided by the ElaoHtmlActionBundle.
This config will generate the following routes:
Name | Method | Scheme | Host | Path |
---|---|---|---|---|
post_list | GET | ANY | ANY | /posts |
post_create | GET/POST | ANY | ANY | /posts/new |
post_update | GET/POST | ANY | ANY | /posts/{id}/edit |
post_read | GET | ANY | ANY | /posts/{id} |
post_delete | GET/POST | ANY | ANY | /posts/{id}/delete |
Configuration detail
To get the full detail and default values for yout administration just run:
bin/console debug:config ElaoAdminBundle