PHPackages                             springbokagency/faker-xpdo-orm-adapter - 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. [Database &amp; ORM](/categories/database)
4. /
5. springbokagency/faker-xpdo-orm-adapter

ActiveLibrary[Database &amp; ORM](/categories/database)

springbokagency/faker-xpdo-orm-adapter
======================================

A Faker ORM adapter to populate xPDO objects with fake data

v2.0.0(3y ago)420[2 PRs](https://github.com/SpringbokAgency/faker-xpdo-orm-adapter/pulls)MITPHP

Since Apr 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SpringbokAgency/faker-xpdo-orm-adapter)[ Packagist](https://packagist.org/packages/springbokagency/faker-xpdo-orm-adapter)[ RSS](/packages/springbokagency-faker-xpdo-orm-adapter/feed)WikiDiscussions develop Synced today

READMEChangelog (7)Dependencies (3)Versions (12)Used By (0)

Faker xPDO ORM Adapter
======================

[](#faker-xpdo-orm-adapter)

A [Faker](https://github.com/FakerPHP/Faker) ORM adapter to populate [xPDO](http://xpdo.org) objects with fake data.

Table of contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)

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

[](#installation)

Install as development dependency using [Composer](https://getcomposer.org).

```
$ composer require --dev springbokagency/faker-xpdo-orm-adapter
```

Usage
-----

[](#usage)

To populate xPDO objects, create a new populator class (using a generator instance as first parameter, and a valid xPDO instance as second parameter), then list the class and number of all the objects that must be generated. To launch the actual data population, call the execute() method.

Here is an example showing how to populate 5 `modUser` and 10 `modResource` objects:

```
