PHPackages                             celtric/fixtures - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. celtric/fixtures

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

celtric/fixtures
================

A library to define and load static fixtures

0.0.6(9y ago)31.4kMITPHP

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/celtric/fixtures-php)[ Packagist](https://packagist.org/packages/celtric/fixtures)[ RSS](/packages/celtric-fixtures/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (7)Used By (0)

Celtric Fixtures - PHP
======================

[](#celtric-fixtures---php)

[![Build Status](https://camo.githubusercontent.com/8be2e8976ca63fb99dfaa92f61b7f8a3b9f8087a5182281a20f0c7cc11c7376a/68747470733a2f2f7472617669732d63692e6f72672f63656c747269632f66697874757265732d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/celtric/fixtures-php)[![Latest Stable Version](https://camo.githubusercontent.com/c8ae01bda13f0215e85f6a7bed890758b99703bf8fb1752107bf1481d8939d5b/68747470733a2f2f706f7365722e707567782e6f72672f63656c747269632f66697874757265732f762f737461626c65)](https://packagist.org/packages/celtric/fixtures)[![Latest Unstable Version](https://camo.githubusercontent.com/417977a8f67300377652f0d672c97570ed842d090f3ac91055cf79035247f01b/68747470733a2f2f706f7365722e707567782e6f72672f63656c747269632f66697874757265732f762f756e737461626c65)](https://packagist.org/packages/celtric/fixtures)[![License](https://camo.githubusercontent.com/e2a61f43d33024b8f7a2b50a14aa75d8d894644222a34fac8c6ea96d0912e76e/68747470733a2f2f706f7365722e707567782e6f72672f63656c747269632f66697874757265732f6c6963656e7365)](https://packagist.org/packages/celtric/fixtures)

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

[](#introduction)

This is a small library that aims to offer an easy way to define static fixtures. By default it uses YAML files and a custom format (inspired by [Alice](https://github.com/nelmio/alice) format, which is also partially supported using `AliceStyleParser` included in this package), but tries to give several extension points so any developer can easily customize it.

### What this library is not

[](#what-this-library-is-not)

The aim of this package is *not* to provide dynamic fixtures (via fake data generation). Support for it can be added, but you are encouraged to check out [Alice](https://github.com/nelmio/alice) or any other fixture generator.

An example
----------

[](#an-example)

We are going to assume that we have the following class definition:

```
