PHPackages                             cyber-duck/seeder-generator - 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. cyber-duck/seeder-generator

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

cyber-duck/seeder-generator
===========================

Generate seeders automatically from Laravel Telescope

31.1kPHP

Since Jul 21Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Cyber-Duck/seeder-generator)[ Packagist](https://packagist.org/packages/cyber-duck/seeder-generator)[ RSS](/packages/cyber-duck-seeder-generator/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Seeder Generation for Laravel
=============================

[](#seeder-generation-for-laravel)

This is an experimental package to generate seeders from Laravel Telescope entries.

You can contribute by testing it, adding more automate tests, documentation or features!

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

[](#installation)

Require the package with Composer as a dev dependency:

`composer require cyber-duck/seeder-generator --dev`

If you are NOT using the Laravel package auto-discovery feature, please add the following service-provider to `config/app.php`

```
[
    'providers' => [
        // ...
        \CyberDuck\Seeder\Providers\SeederGeneratorProvider::class,
    ]
];
```

Usage
-----

[](#usage)

1. Run this command to get the last Telescope entry:

`php artisan cyber-duck:telescope:last-entry-uuid`

You will receive a response like:

> The last entry uuid is: 937a170d-1aa2-495c-92e2-33389841bab5 (2021-05-20 15:50:20)

2. Perform the steps you want to reproduce (by interacting with the app manually or automatically with Cypress, Laravel Dusk, etc.)
3. Generate the seeder:

`php artisan cyber-duck:seeder:generate [MySeederClassNameHere] [uuid-entry-here]`

Configuration options
---------------------

[](#configuration-options)

This package will do its best to work without any configuration option, but you can also:

### Map tables to models:

[](#map-tables-to-models)

```
// config/seeder-generator.php
[
    //...
    'tablesDictionary' => [
        'my_table' => 'MyModel'
    ],
];
```

### Map static values to variables:

[](#map-static-values-to-variables)

You can map static values of foreign keys to variables:

For example, everytime a query includes the field 'user\_id' as a field or condition, it will be map to a `$userN` variable, where `N` will be dynamic, depending on the user ID.

```
[
    //...
    'expectedVariables' => [
        'user_id' => 'user'
    ],
];
```

You can also map polymorphic relationships where the variable should change depending on the model:

```
[
    //...
    'expectedVariables' => [
        'addressable_id' => 'morph:addressable_type'
    ],
    'morphVariables' => [
        'App\Models\User' => 'user',
    ],
];
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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/0c45a99726cc30692bc4821cfc198df1f5de85b1a15f9b66a0bf739acbac0309?d=identicon)[cyber-duck](/maintainers/cyber-duck)

---

Top Contributors

[![sileence](https://avatars.githubusercontent.com/u/237530?v=4)](https://github.com/sileence "sileence (10 commits)")[![worzy](https://avatars.githubusercontent.com/u/1092417?v=4)](https://github.com/worzy "worzy (1 commits)")

### Embed Badge

![Health badge](/badges/cyber-duck-seeder-generator/health.svg)

```
[![Health](https://phpackages.com/badges/cyber-duck-seeder-generator/health.svg)](https://phpackages.com/packages/cyber-duck-seeder-generator)
```

###  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.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

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

PHPackages © 2026

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