PHPackages                             mehlah/li3\_populator - 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. mehlah/li3\_populator

ActiveLithium-library[Database &amp; ORM](/categories/database)

mehlah/li3\_populator
=====================

Populate a database with mass insertion

32201PHP

Since Sep 15Pushed 12y ago2 watchersCompare

[ Source](https://github.com/mehlah/li3_populator)[ Packagist](https://packagist.org/packages/mehlah/li3_populator)[ RSS](/packages/mehlah-li3-populator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lithium Populator
=================

[](#lithium-populator)

`li3_populator` library let you generate fake data for your Lithium models and save them in the database. It provides a Lithium's ORM/ODM adapter to [Faker](http://github.com/fzaninotto/Faker).

Usage Example
-------------

[](#usage-example)

Here is an example showing how to populate 50 `People` data objects (instances of `lithium\data\entity\Record` or `lithium\data\entity\Document`), and save the records or documents in the database.

```
use faker\Factory;
use li3_populator\extensions\adapter\ORM\Lithium\Populator;

$generator = Factory::create();
$populator = new Populator($generator);
$populator->addEntity('People', 50);
$people_ids = $populator->execute();
```

The populator will guess the relevant data for each field based on your models schema definitions.

For a more advanced usage, take a look to [Faker](http://github.com/fzaninotto/Faker) docs.

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

[](#installation)

This library is installable via [Composer](https://getcomposer.org/) as [mehlah/li3\_populator](https://packagist.org/packages/mehlah/li3_populator).

Don't forget to add the library to your application in `config/bootstrap/libraries.php`

```
Libraries::add('li3_populator');

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

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/67217c861f2a746f3289f095113c13725ee3998fff89355c3d31e3dd3351f527?d=identicon)[mehlah](/maintainers/mehlah)

---

Top Contributors

[![mehlah](https://avatars.githubusercontent.com/u/224928?v=4)](https://github.com/mehlah "mehlah (7 commits)")[![kevcha](https://avatars.githubusercontent.com/u/472453?v=4)](https://github.com/kevcha "kevcha (1 commits)")

### Embed Badge

![Health badge](/badges/mehlah-li3-populator/health.svg)

```
[![Health](https://phpackages.com/badges/mehlah-li3-populator/health.svg)](https://phpackages.com/packages/mehlah-li3-populator)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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