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

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

yaodong/fixtures
================

manage testing fixtures

031PHP

Since Aug 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/yaodng/php-fixtures)[ Packagist](https://packagist.org/packages/yaodong/fixtures)[ RSS](/packages/yaodong-fixtures/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Fixtures
============

[](#php-fixtures)

[![Build Status](https://camo.githubusercontent.com/df218ebc2fbf083b75762f2a2022b61b0db86045e77225e9b003ad0544c8d29e/68747470733a2f2f7472617669732d63692e6f72672f79616f646e672f7068702d66697874757265732e737667)](https://travis-ci.org/yaodng/php-fixtures)

This package is inspired by [Rails](http://guides.rubyonrails.org/testing.html).

Fixtures
--------

[](#fixtures)

Fixtures are a way of organizing data that you want to test against.

They are stored in YAML files, one file per model, which are placed in the directory you want. The fixture file ends with the .yml file extension (Rails example: /test/fixtures/web\_sites.yml). The format of a fixture file looks like this:

```
eric:
  name: Eric Roston
  email: eric@example.com

jane:
  name: Jane Hunter
  email: jane@example.com

```

This fixture file includes two fixtures. Each YAML fixture (ie. record) is given a name and is followed by an indented list of key/value pairs in the "key: value" format. Records are separated by a blank line for your viewing pleasure. Note that fixtures are unordered.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/08adc42ca3b22a8c70faf6b6da02c5fafad603b2a6d9bdd215e9f1950be9f00c?d=identicon)[yaodong](/maintainers/yaodong)

### Embed Badge

![Health badge](/badges/yaodong-fixtures/health.svg)

```
[![Health](https://phpackages.com/badges/yaodong-fixtures/health.svg)](https://phpackages.com/packages/yaodong-fixtures)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
