PHPackages                             codesvault/wp-seeder - 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. codesvault/wp-seeder

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

codesvault/wp-seeder
====================

Database seeder for WordPress

1.2.0(4mo ago)12885MITPHPPHP &gt;=7.4

Since Jan 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/CodesVault/wp-seeder)[ Packagist](https://packagist.org/packages/codesvault/wp-seeder)[ RSS](/packages/codesvault-wp-seeder/feed)WikiDiscussions main Synced 1mo ago

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

WP Seeder
=========

[](#wp-seeder)

Add demo data in the Database from terminal.

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

[](#installation)

It is required to install it using composer `composer install codesvault/wp-seeder`.
It supports PHP **&gt;= 7.4**

Uses
----

[](#uses)

To create a new seeder, run below command in the terminal and provide necessary inputs.

```
./vendor/bin/wpseed new
```

It will generate `/seeders` directory in `/database` directory. Don't move this directory to other location, it must be there. In the `/database/seeders` folder you will have your seeder which was automatically generated, the file name will be same as the class name that you had given input.

Now change the `$table` property according to your table name where you want to store data. `$row` property is for number of rows you want to generate in the table. For generating demo data WP Seeder has build-in support of [FakerPHP](https://fakerphp.github.io/).

Here is an example seeder class:

```
class YourClassName extends WPSeeder
{
    public $table = "cv_users";    // db table name without prefix, default is posts.
    public $row = 5;      // number of db table row will create, default is 1.

    public function run()
    {
        // add data that need to be inserted in database.
        // array key is the column name, value is data that will be stored.
        return array(
            'name' => $this->faker()->unique()->name(),
            'email' => $this->faker()->unique()->email(),
            'password' => $this->faker()->unique()->password()
        );
    }
}
```

If you want to create more seeders for different tables then just repeate the above process. Now just run below command in the terminal from plugin's root directory and data will be stored in the database.

```
`./vendor/bin/wpseed store`
```

.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance76

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~544 days

Total

3

Last Release

133d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.4

1.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8078871c211cddf84f3fcff8321f973ed3324aa0c54d0d8a2b5c3ad9ffa2fca2?d=identicon)[abmSourav](/maintainers/abmSourav)

---

Top Contributors

[![AbmSourav](https://avatars.githubusercontent.com/u/39233955?v=4)](https://github.com/AbmSourav "AbmSourav (28 commits)")

---

Tags

databasemysqlmysql-databaseseederseederswordpresswordpress-php-library

### Embed Badge

![Health badge](/badges/codesvault-wp-seeder/health.svg)

```
[![Health](https://phpackages.com/badges/codesvault-wp-seeder/health.svg)](https://phpackages.com/packages/codesvault-wp-seeder)
```

###  Alternatives

[bolt/core

🧿 Bolt Core

585142.5k54](/packages/bolt-core)[webfactory/slimdump

slimdump is a little tool to help you creating dumps of large MySQL-databases.

188124.8k1](/packages/webfactory-slimdump)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[guidocella/eloquent-populator

Guess attributes for Eloquent model factories

7661.6k2](/packages/guidocella-eloquent-populator)[edyan/neuralyzer

Library and CLI for Data anonymization

53147.1k2](/packages/edyan-neuralyzer)[darkterminal/turso-php-installer

Turso libSQL Extension PHP Installer

194.2k1](/packages/darkterminal-turso-php-installer)

PHPackages © 2026

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