magicoli/php-bump-library
Composer 安装命令:
composer require magicoli/php-bump-library
包简介
PHP Library for Project Version Management
README 文档
README
This library provides tasks for automating versioning of your PHP projects.
It allows you to increment the version based on different levels (major, minor, patch, dev, beta, rc), and update version references in various files such as PHP files, README.md, package.json, and readme.txt.
Installation
Run the following command in your project directory:
composer require --dev magicoli/php-bump-library
And add the following script to your composer.json file:
"scripts": { "bump-version": "robo --load-from=vendor/magicoli/php-bump-library/RoboFile.php bump:version" }
Usage
composer bump-version [level]
Replace [level] with the desired level of version increment, such as major, minor, patch, rc, beta, or dev. If you ommit it, the default level is patch.
Alternatively, you can run the script directly with the following command:
robo bump:version
# or
robo --load-from=path/to/RoboFile.php bump:version
Make sure to adjust RoboFile.php to the actual path of the file in your project.
About Versioning
Semantic Versioning follows a specific order of version increments:
Development stages (M.m.p-stage):
- Dev: development versions that are not yet stable or released.
- Beta: pre-release versions that are closer to the stable release but may still have minor issues.
- RC: release candidates, which are close to the final release but may require additional testing.
Releases (M.m.p):
- Patch: backward-compatible bug fixes.
- Minor: added functionality, still backward-compatible manner.
- Major: big bada boom.
Note that dev, beta, and rc versions are considered inferior to the normal versions and are typically used in pre-release stages or development cycles: 1.0-dev < 1.0-beta < 1.0-rc < 1.0.
For example, if your version is 1.0.0 and you bump it on the dev level, new version will be 1.0.1-dev (note the pach increment). If you bump the dev to beta, it will keep its main version and become 1.0.1-beta. And if you bump 1.0.1-beta without arguments, the new version will be 1.0.1.
License
This library is licensed under the AGPL-v3 License.
magicoli/php-bump-library 适用场景与选型建议
magicoli/php-bump-library 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 140 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 magicoli/php-bump-library 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 magicoli/php-bump-library 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 140
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2023-07-21