dg/composer-frontline 问题修复 & 功能扩展

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

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

dg/composer-frontline

最新稳定版本:v0.2

Composer 安装命令:

composer require dg/composer-frontline

包简介

Composer Frontline: updates all the version constraints in the composer.json file to latest version

关键字:

README 文档

README

Downloads this Month

Updates all the version constraints of dependencies in the composer.json file to their latest version.

How do you update outdated dependencies?

When you install a package using composer require vendor/package, a entry for example "vendor/package": "^1.4" is added to the composer.json file. It means that Composer can update to patch and minor releases: 1.4.1, 1.5.0 and so on. But not to major version, which means, in this example, 2.0 and higher.

To discover new releases of the packages, you run composer outdated. Some of those updates can be major releases. Running composer update won’t update the version of those.

To update to a new major versions, use this tool Composer Frontline.

Usage

Install it:

composer global require dg/composer-frontline

then run it:

composer frontline

it will print something like:

vendor/package      ^1.4  →  ^2.0
nette/mail          ^1.0  →  ^3.1
latte/latte         ^1.6  →  ^2.8

This will upgrade all the version hints in the composer.json file, in require and require-dev sections. It only modifies composer.json file. So run composer update to update your packages.

You can also update only specific packages using names and wildcards:

composer frontline  nette/*
composer frontline  doctrine/* symfony/console

Make sure your composer.json file is in version control and all changes have been committed. This will overwrite your composer.json file.

统计信息

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

GitHub 信息

  • Stars: 27
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-10-30