PHPackages                             lichnow/alice-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. lichnow/alice-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

lichnow/alice-bundle
====================

Symfony2 Bundle to manage fixtures with Alice and Faker.

06PHP

Since Jan 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lichnow/AliceBundle)[ Packagist](https://packagist.org/packages/lichnow/alice-bundle)[ RSS](/packages/lichnow-alice-bundle/feed)WikiDiscussions dev-master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AliceBundle
===========

[](#alicebundle)

A [Symfony](http://symfony.com) bundle to manage fixtures with [nelmio/alice](https://github.com/nelmio/alice) and [fzaninotto/Faker](https://github.com/fzaninotto/Faker).

Currently supports [Doctrine ORM](http://www.doctrine-project.org/projects/orm.html), [Doctrine ODM](http://doctrine-mongodb-odm.readthedocs.org/en/latest/), [Doctrine PHPCR ODM](http://doctrine-phpcr-odm.readthedocs.org/en/latest/).

[![Package version](https://camo.githubusercontent.com/a5ca9621dd34735686069a9d10ebcfa54d2a759d0bed98f5407468f7eb3d8035/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68617574656c6f6f6b2f616c6963652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hautelook/alice-bundle)[![Build Status](https://camo.githubusercontent.com/c821901b06153e67718f2b4c7c46dbf6bb353c4e639a87e0bebd8d50f8a5f248/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f68617574656c6f6f6b2f416c69636542756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/hautelook/AliceBundle?branch=1.x)[![SensioLabsInsight](https://camo.githubusercontent.com/17f23f6ebef5bec3b2eb4242f715beda7f88f6bcf3de6fbdc0b7c08f9cef2f80/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64393361336663342d336665382d346265332d616136322d3330376635333839383139392e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/d93a3fc4-3fe8-4be3-aa62-307f53898199)[![Dependency Status](https://camo.githubusercontent.com/46560d9467d9cd8a8ec9299c781c05cc952ef3e26cf3c9f46363aa3c1561f2a2/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535643236343738323635666636303031613030303038342f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55d26478265ff6001a000084)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5dc6c93c425233cde1cd3d78b429fb5bfebcfc31d6b4bc4c1ec71c388f80e128/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f68617574656c6f6f6b2f416c69636542756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hautelook/AliceBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/dbf0d560e56aebe731f44cc862392acf7f2cc4c945ff5e49b4a5c3acf3ecb9f9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f68617574656c6f6f6b2f416c69636542756e646c652e7376673f623d6d6173746572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hautelook/AliceBundle/?branch=master)[![HHVM support](https://camo.githubusercontent.com/ff2c33ee920fe80d905b3a4675601077d70b28deebc4cba47a51e1d9150c09e6/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f68617574656c6f6f6b2f616c6963652d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/hautelook/alice-bundle)

[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/hautelook/AliceBundle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Documentation
-------------

[](#documentation)

1. [Install](#installation)
2. [Basic usage](#basic-usage)
3. [Advanced usage](src/Resources/doc/advanced-usage.md)
    1. [Enabling databases](src/Resources/doc/advanced-usage.md#enabling-databases)
    2. [Fixtures parameters](src/Resources/doc/advanced-usage.md#fixtures-parameters)
    3. [Doctrine ORM](src/Resources/doc/advanced-usage.md#doctrine-orm)
    4. [Doctrine ODM (MongoDB)](src/Resources/doc/advanced-usage.md#doctrine-odm-and-doctrine-phpcr-odm)
    5. [Doctrine PHPCR ODM](src/Resources/doc/advanced-usage.md#doctrine-odm-and-doctrine-phpcr-odm)
4. [Custom Faker Providers](src/Resources/doc/faker-providers.md)
    1. [Simple Provider](src/Resources/doc/faker-providers.md#simple-provider)
    2. [Advanced Provider](src/Resources/doc/faker-providers.md#advanced-provider)
5. [Custom Alice Processors](src/Resources/doc/alice-processors.md)
6. [DoctrineFixturesBundle support](src/Resources/doc/doctrine-fixtures-bundle.md)
7. [Resources](#resources)

Other references:

- [Knp University screencast](https://knpuniversity.com/screencast/alice-fixtures)

Installation
------------

[](#installation)

First you need install appropriate database managers (if you didn't install it yet), according to your project requirements. Check the documentation [here](src/Resources/doc/install.md).

You can use [Composer](https://getcomposer.org/) to install the bundle to your project:

```
composer require --dev hautelook/alice-bundle
```

Then, enable the bundle by updating your `app/config/AppKernel.php` file to enable the bundle:

```
