Download the PHP package arkounay/quick-admin-generator-bundle without Composer
On this page you can find all versions of the php package arkounay/quick-admin-generator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package quick-admin-generator-bundle
QAG - Quick Admin Generator Bundle
QAG is a bundle that allows quick and simple generation of administration backends for Symfony applications using Doctrine.
Getting started
Install the dependency:
also, make sure the following line was added in config/bundles.php
:
and that assets were installed: php bin/console assets:install --symlink
.
Finally, add the following route configuration, for example in config/routes.yaml
:
You will probably want to secure the /admin route prefix. To do so, you can add the following line in your security.yaml
:
and that's it, the bundle is ready to be used.
Now, you can add a Controller that extends Arkounay\Bundle\QuickAdminGeneratorBundle\Controller\Crud
to add your first crud.
For example, let's say you have a News
entity.
!> Make sure your entity implements __toString()
!
Create a controller, for instance src/Controller/Admin/NewsController.php
, with the following code:
and now refresh /admin
in your browser. You should see a new "News" item that appeared in the menu, and you should now be able to create, edit, and delete news.
If you use the symfony command to display routes php bin/console debug:router
, you'll see that some routes have been generated for you:
Next steps
There are multiple ways to configure and override things in QAG Bundle, depending on the complexity of the project. You can use attributes for simple and quick tweaks regarding entity fields, override Twig templates to change the appearance, add listeners to create special rules that apply when parsing entities, and more.
See : 1) Fields configuration
- Configure Fields by Attributes
- QAG\Field
- QAG\HideInForm
- QAG\HideInList
- QAG\HideInView
- QAG\HideInExport
- QAG\Ignore
- QAG\Sort
- QAG\Crud
- Configure Fields by overriding controllers
- Configure Fields by using Listeners
2) Controllers, lists, and security
- Changing the URL prefix
- Metadata
- Changing name
- Adding an icon
- Adding a badge with a number
- Adding a description
- Responsive mode
- Permissions
- Security checker
- Filtering the list
- Filtering through Query Builder
- Filtering through Filters
- Dependency injection
- Overriding the default behaviour 3) Actions and routing
- Normal actions
- Batch actions
- Global actions
- Customizing how actions are rendered
- Entity actions display mode (dropdown / expanded)
- Routing shorcuts 4) Forms
- Overriding the Form Builder directly
- Overriding the automatic Form Builder generation by using Event Subscribers
- Overriding the form type
- Collections
- Overriding the form's twig theme
- Overriding the form's twig theme for a specific entity
- Disabling turbo on form submit 5) Configuring menu items and their position
- Overriding the menu through yaml
- Overriding the menu by service
- Overriding the menu through twig
- Changing the menu orientation
- Changing the title
- Enabling global search
- Switch to dark Mode
- Redirect to a specific route instead of the Dashboard 6) Overriding the rest of the twigs
- Theme
- Interactive command-line helper
- Overriding creation and edition
- Overriding lists
- Overriding the Dashboard
- Adding custom JavaScript
All versions of quick-admin-generator-bundle with dependencies
knplabs/knp-paginator-bundle Version >=5.3
doctrine/doctrine-bundle Version >=2.1
symfony/form Version >=6.3.0
symfony/framework-bundle Version >=6.3.0
symfony/console Version >=6.3.0
symfony/intl Version >=6.3.0
symfony/property-info Version >=6.3.0
symfony/yaml Version >=6.3.0
symfony/expression-language Version >=6.3
symfony/asset Version >=6.3
symfony/security-bundle Version >=6.3
symfony/validator Version >=6.3
arkounay/ux-collection Version ^4.0
symfony/twig-bundle Version >=6.3.0
twig/intl-extra Version >=3.3
twig/extra-bundle Version >=3.3
twig/twig Version ^2.12|^3.0
doctrine/doctrine-migrations-bundle Version ^3.1
doctrine/orm Version ^2.10|^3.3
symfony/proxy-manager-bridge Version >=6.3.0
symfony/ux-turbo Version ^2.0
symfony/stimulus-bundle Version ^2.13
symfony/monolog-bundle Version >=3.1
symfony/flex Version ^2