承接 vildanbina/composer-upgrader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vildanbina/composer-upgrader

Composer 安装命令:

composer require vildanbina/composer-upgrader

包简介

Effortlessly upgrade all Composer dependencies to their latest versions with a single command.

README 文档

README

GitHub Workflow Status (main) Total Downloads Latest Version License

Introduction

Composer Upgrader is a sleek and powerful Composer plugin designed to simplify dependency management in PHP projects. With a single command, upgrade all your dependencies to their latest versions effortlessly. Whether you're maintaining a small library or a large application, this tool offers:

  • Flexible Upgrades: Choose major, minor, or patch-level updates.
  • Targeted Updates: Focus on specific packages with precision.
  • Stability Control: Set your preferred stability level for peace of mind.
  • Safe Previews: Test changes before applying them.

It updates your composer.json and prompts you to run composer update, keeping you in full control of your project!

Requirements

  • PHP: ^8.0+ (Optimized for modern PHP versions)
  • Composer: 2.x

Installation

You can install Composer Upgrader either locally in your project or globally on your system:

Local Installation

Add it to your project:

composer require vildanbina/composer-upgrader

Global Installation

Install it globally for use across all projects:

composer global require vildanbina/composer-upgrader

Note: Ensure your global Composer bin directory (e.g., ~/.composer/vendor/bin or ~/.config/composer/vendor/bin) is in your PATH to run composer upgrade-all from anywhere. Check with echo $PATH and update if needed (e.g., export PATH="$HOME/.composer/vendor/bin:$PATH").

No additional setup required—ready to use either way!

Configuration

No configuration files needed! Customize your upgrade experience directly through command-line options for a lightweight, hassle-free setup.

Commands

upgrade-all

Upgrade your project dependencies with ease. This command scans your composer.json, updates it with the latest compatible versions, and advises you to run composer update to apply the changes.

Usage:

composer upgrade-all [options]

Options:

  • --major: Upgrade to the latest major versions (e.g., 1.0.02.0.0). Enabled by default.
  • --minor: Upgrade to the latest minor versions (e.g., 1.0.01.1.0). Enabled by default.
  • --patch: Upgrade to the latest patch versions (e.g., 1.0.01.0.1). Enabled by default.
  • --dry-run: Preview upgrades without modifying files—ideal for testing.
  • --stability <level>: Set minimum stability (stable, beta, alpha, dev). Defaults to stable.
  • --only <packages>: Upgrade specific packages (e.g., vendor/package1,vendor/package2,vendor/*).

Examples:

  • Patch-Only Upgrade:

    composer upgrade-all --patch

    Output:

    Fetching latest package versions...
    Found vendor/package: ^1.0.0 -> 1.0.1
    Composer.json has been updated. Please run "composer update" to apply changes.
    
  • Preview Major Upgrades:

    composer upgrade-all --major --dry-run

    Output:

    Fetching latest package versions...
    Found vendor/package: ^1.0.0 -> 2.0.0
    Dry run complete. No changes applied.
    
  • Specific Packages:

    composer upgrade-all --only vendor/package1 --patch

    Output:

    Fetching latest package versions...
    Found vendor/package1: ^1.0.0 -> 1.0.1
    Composer.json has been updated. Please run "composer update" to apply changes.
    
  • Specific Packages With Prefix:

    composer upgrade-all --only vendor/* --patch

    Output:

    Fetching latest package versions...
    Found vendor/package1: ^1.0.0 -> 1.0.1
    Found vendor/package2: ^2.0.1 -> 2.0.2
    Composer.json has been updated. Please run "composer update" to apply changes.
    

After running, finalize the updates with:

composer update

Features

  • Precision Upgrades: Tailor updates to major, minor, or patch levels with ease.
  • Selective Targeting: Use --only to upgrade just the packages you need.
  • Stability Flexibility: Match your project’s stability needs (stable, beta, etc.).
  • Safe Previews: Test changes with --dry-run before committing.
  • Verbose Logs: Add -v for detailed insights into the upgrade process.

Contributing

Want to make this tool even better? Contributions are welcome! Check out our CONTRIBUTING guide for details on submitting bug fixes, features, or documentation improvements.

Security Vulnerabilities

Spot a security issue? Please email vildanbina@gmail.com directly instead of using the issue tracker. We’ll address it swiftly!

Credits

License

Licensed under the MIT License (MIT). See the License File for more information.

Upgrade smarter, not harder, with Composer Upgrader! 🎉

vildanbina/composer-upgrader 适用场景与选型建议

vildanbina/composer-upgrader 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.55k 次下载、GitHub Stars 达 38, 最近一次更新时间为 2025 年 03 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 vildanbina/composer-upgrader 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vildanbina/composer-upgrader 我们能提供哪些服务?
定制开发 / 二次开发

基于 vildanbina/composer-upgrader 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 38
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

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