<commit_before>[![Build Status](https://travis-ci.org/Opifer/CrudBundle.svg)](https://travis-ci.org/Opifer/CrudBundle)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b5bbfc11-5e4f-4547-9c08-23e9c46d9929/mini.png)](https://insight.sensiolabs.com/projects/b5bbfc11-5e4f-4547-9c08-23e9c46d9929)

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`

```php
public function registerBundles()
{
    // @todo reduce dependencies
    $bundles = array(
        ...
        new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(),
        new Genemu\Bundle\FormBundle\GenemuFormBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
        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.

```yaml
cmf_routing:
    chain:
        routers_by_id:<commit_msg>Readme update<commit_after>[![Build Status](https://travis-ci.org/Opifer/CrudBundle.svg)](https://travis-ci.org/Opifer/CrudBundle)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b5bbfc11-5e4f-4547-9c08-23e9c46d9929/mini.png)](https://insight.sensiolabs.com/projects/b5bbfc11-5e4f-4547-9c08-23e9c46d9929)

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`

```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.

```yaml
cmf_routing:
    chain:
        routers_by_id:
{'fraction_non_alphanumeric': 0.14424460431654676, 'fraction_numerical': 0.030215827338129497, 'mean_word_length': 3.3183229813664594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7159437', 'n_tokens_mistral': 951, 'n_tokens_neox': 898, 'n_words': 174}