fhaase/composer-patches-generate 问题修复 & 功能扩展

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

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

fhaase/composer-patches-generate

最新稳定版本:v0.2.0

Composer 安装命令:

composer require fhaase/composer-patches-generate

包简介

Command to create composer patches via cli

README 文档

README

Introduction

A standalone command-line utility to generate patches for cweagans/composer-patches.

Effortlessly capture local modifications to Composer dependencies, commit them to your project, and ensure your custom fixes are reliably applied across all environments during composer install.

Install

Make sure git and find are installed.

git version           
-> git version 1.51.0

find --version
-> find (GNU findutils) 4.10.0-dirty
composer require --dev fhaase/composer-patches-generate

# Recommended to apply patches on install
composer require cweagans/composer-patches

Usage

Generate or update patch files

  1. Create a copy of a file with *.old suffix inside one of the composer packages
  2. Modify the original file
    There should now be files like this:
    UserFactory.php
    UserFactory.php.old
    
  3. Run the command with the package name
    vendor/bin/composer-patches-generate vendor/example
  4. When prompted, you can give a short description to generate configuration for cweagans/composer-patches \
    {
       "extra": {
           "patches": {
               "vendor/example": {
                   "<description>": "patches/vendor_example/UserFactory.patch"
               }
           }
       }
    }
  5. Repeat Step 3 to update the patches when further changes are necessary.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固