PHPackages                             ambersive/yamlseeder - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ambersive/yamlseeder

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ambersive/yamlseeder
====================

This package allows you to seed your tables with help of yaml files.

v0.2.2(5y ago)31.3k1[3 PRs](https://github.com/sushidev-team/yamlseeder/pulls)MITPHPCI failing

Since Jun 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sushidev-team/yamlseeder)[ Packagist](https://packagist.org/packages/ambersive/yamlseeder)[ RSS](/packages/ambersive-yamlseeder/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (6)Versions (12)Used By (0)

YAML SEEDER
===========

[](#yaml-seeder)

[![Maintainability](https://camo.githubusercontent.com/70d47716cd57f055cf63027a8b545d18f98d90c94fa691923e4503e57e06c398/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61363036386561363965643331663065363832372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/AMBERSIVE/yamlseeder/maintainability) [![Build Status](https://camo.githubusercontent.com/2812fe76b581ffd9fe9476efa774c44a1eb644bd26a70bab5e18965b6f2c14e5/68747470733a2f2f7472617669732d63692e6f72672f414d424552534956452f79616d6c7365656465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AMBERSIVE/yamlseeder)

Changes between versions will be tracked in the [CHANGELOG](CHANGELOG.md).

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

[](#installation)

```
composer require ambersive/yamlseeder
```

#### Optional: Publish the config

[](#optional-publish-the-config)

```
php artisan vendor:publish --tag=yaml-seeder
```

Usage
-----

[](#usage)

All the seeds will be executed if you run the classic

```
php artisan db:seed
```

Create yaml seed file
---------------------

[](#create-yaml-seed-file)

Create a yml file in *database/seeds-yaml*. Please use the *.yml* file extension.

The structure of the the seed looks like:

```
model: \AMBERSIVE\Tests\Examples\Models\Migration
primaryKey: id
fieldsOnCreate:
  - migration
  - batch
data:
  - id: 99
    batch: 1
    migration: 'users_test_table'
```

**model**: The model will define which data should be seeded.

**primaryKey**: Default it is 'id' if not defined.

**exlude**: Default is false. This defines if the file will be included within the normal db:seed process.

**fieldsOnCreate**: List of field name which defines which files will be need on a create statement. Make your fields nullable if you want to reduce the list.

**data**: Array of the actual data. Follow the structure of you model.

### Command

[](#command)

```
 php artisan make:seeder-yaml demo --model=App/User
```

This command will create in the *database/seeds-yaml* folder a demo.yml file.

Feedback
--------

[](#feedback)

Please feel free to give us feedback or any improvement suggestions.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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 ~21 days

Total

8

Last Release

1988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80b1e9efacc425a65161eda871719db5a51d598f46e3afc5455009a889c1483a?d=identicon)[sushidev](/maintainers/sushidev)

---

Top Contributors

[![leganz](https://avatars.githubusercontent.com/u/3373530?v=4)](https://github.com/leganz "leganz (28 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (3 commits)")

---

Tags

laravelseederseedingyaml

### Embed Badge

![Health badge](/badges/ambersive-yamlseeder/health.svg)

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

###  Alternatives

[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[mischasigtermans/laravel-toon

Token-Optimized Object Notation encoder/decoder for Laravel with intelligent nested object handling

13113.1k](/packages/mischasigtermans-laravel-toon)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[prohalexey/the-choice

253.3k](/packages/prohalexey-the-choice)

PHPackages © 2026

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