Download the PHP package trappar/alice-generator without Composer
On this page you can find all versions of the php package trappar/alice-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package alice-generator
AliceGenerator
Recursively convert existing objects into Alice Fixtures.
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
Let's say you have the following objects
This library let's you turn that directly into...
Installation
You can use Composer to install the library to your project:
Features
- Framework support
- Supports Symfony via AliceGeneratorBundle - Start generating fixtures immediately with zero custom code required!
- ORM support
- Supports Doctrine natively
- Can operate without any ORM
- Can be extended to support any ORM
- Many ways to make use of Faker providers
- Configure how your objects are serialized using annotations or YAML metadata
- Can serialize any object type using custom ObjectHandlers
- Supports multiple levels of recursion taming
- Handles circular references automatically
- Customizable maximum recursion depth
- Can restrict object traversal to only specific objects of a type
- Supports several methods of naming Alice references natively - fully customizable
Table of Contents
- Usage
- Basic usage
- Fixture Generation Contexts
- Limiting Recursion
- Limiting Recursion Depth
- Limiting Recursion With Object Constraints
- Customizing Reference Naming Strategy
- Force Inclusion of Properties at Default Values
- Property Metadata
- Data
- Ignore
- Faker
- Built-in Faker Resolver Types
- array
- value-as-arg
- callback
- Custom Object Handlers
- Configuration
- Constructing a FixtureGenerator
- Using with Doctrine
- Property Namer Strategy
- Adding Custom Object Handlers
- Configuring Metadata Locations
- Disabling Strict Type Checking
Resources
- Changelog
Credits
This bundle was developed by Jeff Way with quite a lot of inspiration from:
License
All versions of alice-generator with dependencies
symfony/yaml Version ^2.8||^3.0|^4.0
doctrine/common Version ^2.6
jms/metadata Version ^1.5