johan-code/patch-runner 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

johan-code/patch-runner

最新稳定版本:1.0.1

Composer 安装命令:

composer require johan-code/patch-runner

包简介

PHP executable patching system

README 文档

README

Installation

Install the package via Composer:

composer require johan-code/patch-runner

Add the package's service provider to your config/app.php file:

'providers' => [
    // Other service providers...
    \JohanCode\PatchRunner\PatchRunnerServiceProvider::class,
],

Publish the package configuration file (optional):

php artisan vendor:publish --tag=patch-runner-config

Run migrations:

php artisan migrate

Console Commands

The package provides the following console commands:

  • php artisan make:patch Generates a new patch file with a "run" method.
  • php artisan patch Runs all pending patches that haven't been executed yet.
  • php artisan patch:status Displays the status of patches (executed or not).

Config File

After publishing the package configuration file, you can modify the behavior of the patch runner by editing the config/patch-runner.php file.

Usage

Here's an example of how to use the package:

  1. Generate a new patch file: php artisan make:patch MyPatch

  2. Implement the "run" method in the generated patch file ("MyPatch.php").

  3. Run pending patches: php artisan patch

  4. Check the status of patches: php artisan patch:status

License

This package is open-source software licensed under the MIT License. You can find the license text in the LICENSE file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固