PHPackages                             gbhorwood/pollinate - 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. [CLI &amp; Console](/categories/cli)
4. /
5. gbhorwood/pollinate

ActiveConsole[CLI &amp; Console](/categories/cli)

gbhorwood/pollinate
===================

Artisan command to create seed files from the database

0.0.3(3y ago)82.2k↓18.2%MITPHPPHP ^7.4|^8.0

Since Dec 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gbhorwood/pollinate)[ Packagist](https://packagist.org/packages/gbhorwood/pollinate)[ RSS](/packages/gbhorwood-pollinate/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Pollinate
=========

[](#pollinate)

[![License](https://camo.githubusercontent.com/db9305255f1820f70e42f673ffdd3500b1895dcf1583b00f4fc3d1691cb8c894/687474703a2f2f706f7365722e707567782e6f72672f6762686f72776f6f642f706f6c6c696e6174652f6c6963656e7365)](https://packagist.org/packages/gbhorwood/pollinate)[![License](https://camo.githubusercontent.com/69317c7b22ae0b43b11ba678f56a06b5e1c276c382177d7801dab7d72bae3abf/687474703a2f2f706f7365722e707567782e6f72672f6762686f72776f6f642f706f6c6c696e6174652f726571756972652f706870)](https://packagist.org/packages/gbhorwood/pollinate)

Pollinate is a command for `artisan` for use in Laravel projects that creates database seed files from your database. If you have data in a database and want to turn it into seeds, pollinate is here. Pollinate was developed as an internal-use tool for [fruitbat studios](https://fruitbat.studio)/cloverhitch technologies/kludgetastic implementations.

Install
-------

[](#install)

Install via composer

```
composer require gbhorwood/pollinate
```

Prerequisites
-------------

[](#prerequisites)

Pollinate requires the following:

- PHP 7.4 or higher
- The `pdo` extension
- The composer package `doctrine/dbal`

Usage
-----

[](#usage)

The simplest usage of pollinate is:

```
php artisan gbhorwood:pollinate
```

This will create seed files for *all* the tables in your database, and all seed files and classnames will be prefixed with the default `pollinate_` prefix.

**note:** some tables are automatically excluded from pollinations, such as passport tables and job tables. these are defined in the script in the `ignoreTables` array.

### pollinating specific tables

[](#pollinating-specific-tables)

If you only wish to create seed files for specified tables, you can provide a comma-separated list of table names as an argument:

```
php artisan gbhorwood:pollinate users,pets,user_pet
```

#### ignored tables

[](#ignored-tables)

Some tables are preset to not bet pollinated. These are tables for things like passport or jobs. You can dump a list of ignored tables with

```
php artisan gbhorwood:pollinate --show-ignored
```

If you explicitly name a table in the tables list, it will be pollinated even if it is in the ignored list

```
php artisan gbhorwood:pollinate jobs,failed_jobs
```

### specifying a prefix

[](#specifying-a-prefix)

By default, pollinate prefixes all seed file and class names with `pollinate_`. You can specify your own prefix with the `--prefix=` option:

```
php artisan gbhorwood:pollinate --prefix=mydevbox
```

this will create seed files and classes with names like `mydevbox_Pets.php`.

### overwriting existing seed files

[](#overwriting-existing-seed-files)

Pollinate's default behaviour is to not overwrite existing seed files. If one or more seed files exist that would be overwritten, pollinate will error and quit before doing any work.

If you wish to override this behaviour so that existing seed files are overwritten, you can pass the `--overwrite` option:

```
php artisan gbhorwood:pollinate --overwrite
```

### missing or empty tables

[](#missing-or-empty-tables)

Pollinate does not write seed files for missing or empty tables.

### output

[](#output)

All non-error output can be suppressed by passing the `--silent` option.

If output is not suppressed, pollinate will output a list of classes that can be pasted into your `DatabaseSeeder.php` file.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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 ~1 days

Total

3

Last Release

1338d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4615659?v=4)[grant horwood](/maintainers/gbhorwood)[@gbhorwood](https://github.com/gbhorwood)

---

Top Contributors

[![gbhorwood](https://avatars.githubusercontent.com/u/4615659?v=4)](https://github.com/gbhorwood "gbhorwood (23 commits)")

### Embed Badge

![Health badge](/badges/gbhorwood-pollinate/health.svg)

```
[![Health](https://phpackages.com/badges/gbhorwood-pollinate/health.svg)](https://phpackages.com/packages/gbhorwood-pollinate)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M417](/packages/easycorp-easyadmin-bundle)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M227](/packages/backpack-crud)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[shopware/storefront

Storefront for Shopware

674.7M282](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M666](/packages/shopware-core)[oat-sa/tao-core

TAO core extension

65147.9k151](/packages/oat-sa-tao-core)

PHPackages © 2026

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