bravesheep / crudify-bundle
Symfony bundle that provides a simple CRUD interface
Installs: 4 697
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 2
Open Issues: 5
Requires
- doctrine/doctrine-bundle: ^1.11
- doctrine/orm: ^2.6
- knplabs/knp-paginator-bundle: ^4.0
- symfony/framework-bundle: ^3.4 || ^4.0
Requires (Dev)
- behat/symfony2-extension: ^2.1
- bravesheep/phpspec-expect: ^0.2.0
- fzaninotto/faker: ^1.8
- phpspec/phpspec: ^5.1
README
The Bravesheep crudify bundle provides an easy way to quickly get a CRUD interface (Create-Read-Update-Delete) for simple entities. The bundle has several extension points and options to customize behavior. Most functionality can be customized quickly via the configuration. For a more generalized (be it more verbose) approach you should take a look at the SonataAdminBundle. Currently the BravesheepCrudifyBundle only supports Doctrine ORM as a backend for retrieving data.
Documentation
Read more about the bundle here:
- Introduction
- Permissions
- Templates
- Modify the query used for index pages
- Modify the way objects are retrieved on edit and delete pages
- Modify the options array for building the form
- Use a custom controller
- Default configuration
Installation and configuration
Using Composer add the bundle to your requirements:
{ "require": { "bravesheep/crudify-bundle": "dev-master" } }
Then run composer update bravesheep/crudify-bundle
Basic configuration
Define mappings in your configuration file app/config/config.yml
:
bravesheep_crudify: mappings: ~
A full listing of the default config is available in the documentation.
Add routes to your routing file
In app/config/routing.yml
, add the routes for the crudify administrator interface:
crudify_admin: prefix: /admin/ type: crudify resource: .
Add the bundle to your AppKernel
Finally add the bundle in app/AppKernel.php
:
public function registerBundles() { return array( // ... new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), new Bravesheep\CrudifyBundle\BravesheepCrudifyBundle(), // ... ); }
Don't forget to further configure the KnpPaginatorBundle, following their guide. If you are already using the KnpPaginatorBundle in your AppKernel, then you don't need to add it again.