PHPackages                             vladshut/factory - 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. vladshut/factory

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

vladshut/factory
================

Library for generating objects, arrays in testing environment

v1.0.0(2y ago)03MITPHPPHP ^8.2

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vladshut/factory)[ Packagist](https://packagist.org/packages/vladshut/factory)[ RSS](/packages/vladshut-factory/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

vladshut/factory
================

[](#vladshutfactory)

[![pipeline status](https://camo.githubusercontent.com/9591f232954e81c4e23fce2a5ac723cc353cd7a057b871896cf225faa5602e1e/68747470733a2f2f6769746c61622e636f6d2f766c6164736875742f666163746f72792f6261646765732f6d61737465722f706970656c696e652e737667)](https://gitlab.com/vladshut/factory/-/commits/master)[![coverage report](https://camo.githubusercontent.com/887e898baddff2f6acae0947e4386cf347269c7fd0e7cd72ca3006aa25cb4494/68747470733a2f2f6769746c61622e636f6d2f766c6164736875742f666163746f72792f6261646765732f6d61737465722f636f7665726167652e737667)](https://gitlab.com/vladshut/factory/-/commits/master)

---

Base classes for creating factories for data (arrays, objects).

Inspired by laravel [factory library](https://laravel.com/docs/10.x/eloquent-factories).

Installation
------------

[](#installation)

`composer require --dev vladshut/factory`

Usage examples
--------------

[](#usage-examples)

```
