PHPackages                             trappar/alice-generator - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. trappar/alice-generator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

trappar/alice-generator
=======================

Automatically generates alice fixture based on a set of objects

v0.3.1(7y ago)52185.4k↑133.3%20[2 issues](https://github.com/trappar/AliceGenerator/issues)[3 PRs](https://github.com/trappar/AliceGenerator/pulls)1MITPHPPHP ^7.1

Since Aug 25Pushed 6y ago2 watchersCompare

[ Source](https://github.com/trappar/AliceGenerator)[ Packagist](https://packagist.org/packages/trappar/alice-generator)[ RSS](/packages/trappar-alice-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (8)Used By (1)

AliceGenerator [![Build Status](https://camo.githubusercontent.com/24d76891251499e76eeb9ad737ce5c9d917aeb0f0e6355f7d509d5d8f72a2ac4/68747470733a2f2f7472617669732d63692e6f72672f747261707061722f416c69636547656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/trappar/AliceGenerator)
================================================================================================================================================================================================================================================================================================================

[](#alicegenerator-)

Recursively convert existing objects into [Alice](https://github.com/nelmio/alice) Fixtures.

Introduction
------------

[](#introduction)

Sometimes you find yourself working on a large project with no existing fixtures. In this case even though Alice makes fixtures much easier to write, that process can still be tedious.

This library proposes an alternate starting point - *automatically generate fixtures from your existing data.*

This opens up a whole new, much faster way to get your test data established... just enter it in your user interface!

#### Example

[](#example)

Let's say you have the following objects

```
