opifer / crud-bundle
Opifer CRUD Bundle
Installs: 6 094
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 9
Forks: 3
Open Issues: 2
Type:symfony-bundle
Requires
- php: >=5.4
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.4
- gedmo/doctrine-extensions: ~2.3
- genemu/form-bundle: ~2.2
- jms/serializer-bundle: ~1.0
- liuggio/excelbundle: ^2.0
- opifer/rulesengine: @dev
- opifer/rulesengine-bundle: @dev
- pagerfanta/pagerfanta: ~1.0.3
- sensio/framework-extra-bundle: ~3.0
- symfony/symfony: ~2.5
- twig/extensions: ~1.0
- willdurand/js-translation-bundle: 2.2.1
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.2.0
- symfony/phpunit-bridge: ~2.7
This package is auto-updated.
Last update: 2022-02-01 12:39:43 UTC
README
Note: This bundle is not maintained anymore. Have a look at https://github.com/Abhoryo/APYDataGridBundle instead.
CrudBundle
This bundle is still very much a work in progress, so BC-breaks will happen until the first stable release.
Installation
Add the bundle to your composer.json
composer require opifer/crud-bundle dev-master
Register the necessary bundles in app/AppKernel.php
public function registerBundles() { // @todo reduce dependencies $bundles = array( ... new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(), new Genemu\Bundle\FormBundle\GenemuFormBundle(), new JMS\SerializerBundle\JMSSerializerBundle(), new Liuggio\ExcelBundle\LiuggioExcelBundle(), new Opifer\CrudBundle\OpiferCrudBundle(), new Opifer\RulesEngineBundle\OpiferRulesEngineBundle(), new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(), ... } }
Using dynamic crud routing & views
This bundle ships with two custom routers. To register them, add them to the
CmfRoutingBundle
config.
cmf_routing: chain: routers_by_id: router.default: 100 opifer.crud.crud_router: 50 opifer.crud.api_router: 40
Update your config file app/config/config.yml
opifer_crud: # Define a route prefix if necessary # Defaults to '/' route_prefix: /admin # Note: Changing the key values will break the routes pointing to that entity. # Make sure to fix wherever you point to that route. routes: # The key is the route part, the value is the related entity. users: Acme\DemoBundle\Entity\User
After defining a route, you can visit the CRUD pages at the following URL's:
- http://localhost/app_dev.php/users
- http://localhost/app_dev.php/users/new
- http://localhost/app_dev.php/users/edit/:id