PHPackages                             burriko/cake-faker - 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. burriko/cake-faker

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

burriko/cake-faker
==================

CakePHP fixtures plugin using Faker.

23.0k2PHP

Since Aug 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/burriko/cakephp-faker-fixtures)[ Packagist](https://packagist.org/packages/burriko/cake-faker)[ RSS](/packages/burriko-cake-faker/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

CakePHP Faker Fixtures Plugin
=============================

[](#cakephp-faker-fixtures-plugin)

Hacky CakePHP plugin to generate fixtures using Faker. Extends Cake's fixtures class, using it for schema generation, but allows the generation of records to be done by Faker

Work in progress, hacky, works for me, use at your own risk, etc.

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

[](#installation)

Relies on Composer to install and autoload Faker. Just add this to the require block of your composer.json.

```
	"burriko/cake-faker": "2.0.*@dev"

```

Configure
---------

[](#configure)

1. Add the following line to your app/Config/bootstrap.php.

    ```
     CakePlugin::load('CakeFaker');

    ```
2. You'll need to change your fixtures to extend FakerTestFixture instead of CakeTestFixture. So the start of your fixtures files should be something like this.

    ```
