PHPackages                             lord/mother - 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. lord/mother

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

lord/mother
===========

An Object Mother for PHP, providing nested object generation with attributes and extendable generators.

v1.0.0(5mo ago)35MITPHPPHP ^8.3CI passing

Since Jan 6Pushed 5mo agoCompare

[ Source](https://github.com/aaronlord/mother)[ Packagist](https://packagist.org/packages/lord/mother)[ GitHub Sponsors](https://github.com/sponsors/aaronlord)[ RSS](/packages/lord-mother/feed)WikiDiscussions main Synced today

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

Mother
======

[](#mother)

Mother is an Object Mother for PHP, providing nested object generation with minimal configuration, attributes and extendable generators.

It is primarily intended for testing, but can also be used during early development to return realistic data to the frontend before features are fully implemented.

### Installation

[](#installation)

Installation via Composer - typically as a dev dependency, but can also be used in production for feature flagged prototyping if desired.

```
composer require lord/mother --dev
```

### Basic usage

[](#basic-usage)

Objects can be generated a couple of ways:

```
