定制 uax/webman-migrate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

uax/webman-migrate

最新稳定版本:v0.1.0

Composer 安装命令:

composer require uax/webman-migrate

包简介

Laravel-style migration commands for Webman projects

README 文档

README

Laravel-style migration commands for Webman projects.

中文说明请见 README.zh-CN.md.

What This Package Provides

The package provides commands from inside the package itself instead of copying command PHP files into the host project.

Available commands:

  • make:migration
  • migrate
  • migrate:rollback
  • migrate:status
  • migrate:publish

Installation

Install with Composer in a Webman project:

composer require uax/webman-migrate

After installation, Webman's plugin hook writes only the plugin config files needed to register commands:

  • config/plugin/uax/webman-migrate/app.php
  • config/plugin/uax/webman-migrate/command.php

The package does not automatically publish migration stubs or migration directories into the project.

Publish Project Resources

Publish resources only when the host project needs local stubs or the migrations directory:

php webman migrate:publish

This publishes:

  • databases/stubs/migration.stub
  • databases/stubs/migration.create.stub
  • databases/stubs/migration.update.stub
  • databases/migrations/.gitkeep

To overwrite already published files:

php webman migrate:publish --force

Uninstall Behavior

When the package is removed through Composer:

composer remove uax/webman-migrate

The uninstall hook removes:

  • config/plugin/uax/webman-migrate/app.php
  • config/plugin/uax/webman-migrate/command.php
  • published files created by this package and still matching their recorded content

The uninstall hook does not blindly delete user-modified published files.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-18