PHPackages                             a7/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. a7/seeder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

a7/seeder
=========

Perform heavy and/or infrequent actions in a controlled manner

2.3(8y ago)89.4k↓15.4%[2 issues](https://github.com/a7/seeder/issues)PHP

Since Jun 3Pushed 8y agoCompare

[ Source](https://github.com/a7/seeder)[ Packagist](https://packagist.org/packages/a7/seeder)[ RSS](/packages/a7-seeder/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (2)Versions (11)Used By (0)

Seeder
======

[](#seeder)

[![](https://camo.githubusercontent.com/2af67c95f2e4942977a613f1825d367ecdefa63edba7ef7748b7df9436198235/687474703a2f2f642e70722f692f6b6971566b2f35496669597766472b)](https://camo.githubusercontent.com/2af67c95f2e4942977a613f1825d367ecdefa63edba7ef7748b7df9436198235/687474703a2f2f642e70722f692f6b6971566b2f35496669597766472b)

Purpose
-------

[](#purpose)

Perform heavy / infrequent actions in a controlled manner.

Usage
-----

[](#usage)

Use the `A7\Seeder\add_seed` function to register the seed.

```
\A7\Seeder\add_seed( [
	'name'        => 'User Roles',
	'description' => 'Build user roles',
	'callback'    => 'Dev\user_roles',
] );
```

This registers the seed with the callback of `Dev\user_roles`. Create a function with that name (in the appropriate namespace) and this will be the function that runs when you initiate the seed.

You can also just create a closure right there:

```
\A7\Seeder\add_seed( [
	'name'        => 'User Roles',
	'description' => 'Build user roles',
	'callback'    => function() {
		// .. do some logic ..

		echo 'Status of logic';
	},
] );
```

```
namespace Dev;

function user_roles() {
    // .. do some logic ..

    echo 'Status of the logic...';
}
```

Go to Tools -&gt; Seeder and click the corresponding seed button to initialize the callback that you registered.

This could be anything such as pre-filling content, auto-creating terms, updating the database in a certain manner, talking to or updating an API, etc.

Anything output during the seed callback will get output in an admin notice.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~1 days

Total

9

Last Release

3142d ago

Major Versions

0.1.0 → 1.0.02016-03-26

1.0.0 → 2.0.02017-11-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacd1327a695e926c046e2c9bfcf2487581c8ed20b76a1bafa40515649d9baa3?d=identicon)[a7](/maintainers/a7)

---

Top Contributors

[![AaronHolbrook](https://avatars.githubusercontent.com/u/953022?v=4)](https://github.com/AaronHolbrook "AaronHolbrook (10 commits)")

### Embed Badge

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

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

###  Alternatives

[lezhnev74/pasvl

Array Validator (regular expressions for nested array, sort of)

5258.3k3](/packages/lezhnev74-pasvl)[overtrue/laravel-qcloud-federation-token

QCloud COS FederationToken generator for Laravel.

179.5k](/packages/overtrue-laravel-qcloud-federation-token)

PHPackages © 2026

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