PHPackages                             pxianyu/migrations - 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. pxianyu/migrations

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

pxianyu/migrations
==================

Webman plugin eloquent-ORM migrations

1.0.6(2y ago)74.4k9[2 issues](https://github.com/pxianyu/webman-migrations/issues)1MITPHPPHP &gt;=7.2

Since Mar 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pxianyu/webman-migrations)[ Packagist](https://packagist.org/packages/pxianyu/migrations)[ RSS](/packages/pxianyu-migrations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (10)Used By (1)

webman-migration
================

[](#webman-migration)

和laravel migration 使用方法类似

- php webman migrate:create create\_users\_table 生成迁移文件
- php webman migrate:create create\_users\_table --path=admin 生成迁移文件是指定目录
- php webman migrate:run 执行迁移
- php webman migrate:run --path=admin 执行指定目录的迁移
- php webman migrate:rollback 回滚迁移
- php webman migrate:status 查看迁移状态
- php webman migrate:fresh
- php webman seed:run 执行数据填充
- php webman seed:create UserSeeder 生成数据填充文件

指定数据库连接

```
$this->schema()->setConnection(Db::connection('mysql2'))->create('orders', function (Blueprint $table) {
$table->id();
$table->timestamps();
});

```

dev `composer require pxianyu/migrations:dev-dev`在同一个host，同一个端口下，指定不同的库

创建数据库 `php webman create:database test`执行迁移 `php webman migrate:run --database=test`填充数据 `- php webman seed:run --database=test`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.4% 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 ~47 days

Total

7

Last Release

885d ago

PHP version history (2 changes)1.0PHP &gt;=8.1

1.0.1PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![pxianyu](https://avatars.githubusercontent.com/u/17877482?v=4)](https://github.com/pxianyu "pxianyu (13 commits)")[![leekung](https://avatars.githubusercontent.com/u/3615383?v=4)](https://github.com/leekung "leekung (5 commits)")[![hms5232](https://avatars.githubusercontent.com/u/43672033?v=4)](https://github.com/hms5232 "hms5232 (1 commits)")

### Embed Badge

![Health badge](/badges/pxianyu-migrations/health.svg)

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

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[ryangjchandler/orbit

A flat-file database driver for Eloquent.

922256.2k5](/packages/ryangjchandler-orbit)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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