PHPackages                             alfred-nutile-inc/fixturizer - 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. alfred-nutile-inc/fixturizer

ActiveLibrary

alfred-nutile-inc/fixturizer
============================

1.2(11y ago)06.5kPHPPHP &gt;=5.4.0

Since Nov 30Pushed 11y ago12 watchersCompare

[ Source](https://github.com/alfred-nutile-inc/fixturizer)[ Packagist](https://packagist.org/packages/alfred-nutile-inc/fixturizer)[ RSS](/packages/alfred-nutile-inc-fixturizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7d61f0deb5ed6c1ae71ffe43ea01ea0963623de25c866740b74a986b261939d3/68747470733a2f2f7472617669732d63692e6f72672f616c667265642d6e7574696c652d696e632f666978747572697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alfred-nutile-inc/fixturizer)

Fixturizer
==========

[](#fixturizer)

Quick way to write and read fixture data.

Takes php arrays and quickly puts them on the filesystem as yaml files and vice versa.

See tests folder for Test Examples

Non Laravel Usage
-----------------

[](#non-laravel-usage)

You can see in the tests/FixturizerTest.php file some examples of usage. The main goal being that Writer or Reader allow you to easily pass a filename and path to get or put the file / fixture data in yml format.

If you are using Laravel 5.x
----------------------------

[](#if-you-are-using-laravel-5x)

Load up the Provider and Facades

config/app.php load under Providers

```

    'AlfredNutileInc\Fixturizer\FixturizerServiceProvider'

```

Load under Facades

```

    'FixturizerReader' => 'AlfredNutileInc\Fixturizer\FixturizerReader',
    'FixturizerWriter' => 'AlfredNutileInc\Fixturizer\FixturizerWriter',

```

The default folder is tests/fixtures but you can modify this by running

```
php artisan vendor:publish --provider="AlfredNutileInc\Fixturizer\FixturizerServiceProvider"

```

Then you can use it as seen below in a test file

```
