PHPackages                             yangdong/swoft-migration - 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. yangdong/swoft-migration

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

yangdong/swoft-migration
========================

Migration database for swoft framework

08PHP

Since Nov 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/256mywind/migration)[ Packagist](https://packagist.org/packages/yangdong/swoft-migration)[ RSS](/packages/yangdong-swoft-migration/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Attention
=========

[](#attention)

Must be added namespace

[![](app.png)](app.png)

### or

[](#or)

[![](custom.png)](custom.png)

swoft migration
---------------

[](#swoft-migration)

swoft database migration component

install
-------

[](#install)

```
composer require yangdong/swoft-migration
```

If it cannot be installed. maybe add version number.

```
composer require yangdong/swoft-migration:dev-master
```

explain
-------

[](#explain)

about config

.env

```
DB_URI=127.0.0.1:3306/swoft?user=root&password=admin123456&charset=utf8mb4&table_prefix=sw_,127.0.0.1:3306/swoft?user=root&password=admin123456&charset=utf8mb4&table_prefix=sw_
```

Table prefix can be added.

```
&table_prefix=sw_
```

If no prefix is added, the default prefix `sw_` will be used.

db.php can use `evn()` get .env file config data.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c5db042d78b4d91c5af19ad8a993ff16ad5418a390ddb86b5d375c2658b6726?d=identicon)[256mywind](/maintainers/256mywind)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/yangdong-swoft-migration/health.svg)

```
[![Health](https://phpackages.com/badges/yangdong-swoft-migration/health.svg)](https://phpackages.com/packages/yangdong-swoft-migration)
```

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

MongoDB driver library

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

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/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)
