lalamefine / autoadmin
Generate Admin pages automatically with no need for configuration (all access granted)
Fund package maintenance!
Buy Me A Coffee
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- symfony/framework-bundle: ^6.0 || ^7.0
README
This bundle generates admin pages automatically with no need for configuration.
You can manage your Doctrine entities (list, create, edit, delete and associations, when included in entities)
The interface is simple and without clutter nor noise and makes use of __toString()
methods to display meaningful information.
It only works with Single Column Identifiers for now but support for composite keys may be added in the future.
Installation
-
Run
composer require lalamefine/autoadmin
-
If not done automatically, add the bundle in
config/bundles.php
:return [ // ... Lalamefine\Autoadmin\LalamefineAutoadminBundle::class => ['all' => true], // add this line ];
-
Add the route in
config/routes/autoadmin.yaml
:app_file: resource: '@LalamefineAutoadminBundle/config/routes.yaml' prefix: autoadmin
You can change the prefix if you want (e.g.
admin
). -
⚠ WARNING Configure security to restrict access :
You need to configure security at routing level
I do recommand restricting/autoadmin
(or your custom prefix) to a specific user role inconfig/packages/security.yaml
.security: # ... access_control: - { path: ^/autoadmin, roles: ROLE_SUPER_ADMIN } # Add & customize this line # ...
Screenshots
From an improved version of the symfony sample project : https://github.com/symfony/demo
List
View
Edition after comments's "Edit" button is clicked (and 2 elements flagged for removal)
License
This bundle is distributed under the LGPL-3.0-or-later license. Basically, you can use and integrate the licensed software in proprietary projects, as long as modifications to the LGPL-covered code itself remain open-source and shared. See the LICENSE file for more details.