定制 voral/laravel-version-increment 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

voral/laravel-version-increment

Composer 安装命令:

composer require voral/laravel-version-increment

包简介

Laravel Artisan adapter for vs-version-incrementor — automated versioning and changelog generation based on Git commits.

README 文档

README

RU

Scrutinizer Code Quality Code Coverage Code Intelligence Status
PHP Tests

This package provides a native Artisan command for vs-version-incrementor — a tool for automated version management and CHANGELOG.md generation based on Git commit analysis.

Now you can leverage all features of vs-version-incrementor directly from the Laravel console — without manually invoking external scripts.

Installation

Install the package via Composer:

composer require voral/laravel-version-increment --dev

The package is auto-registered thanks to Laravel Package Auto-Discovery.

Usage

After installation, the following Artisan commands become available.

Increment the version:

# Automatically detect the release type (based on Conventional Commits)
php artisan vs-version:increment

# Explicitly specify the version type
php artisan vs-version:increment major
php artisan vs-version:increment minor
php artisan vs-version:increment patch

Preview changes that would be included in the next version and the expected new version — without modifying any files:

# Automatically detect the release type
php artisan vs-version:debug

# Explicitly specify the version type
php artisan vs-version:debug major
php artisan vs-version:debug minor
php artisan vs-version:debug patch

Update CHANGELOG.md and composer.json (if configured), but skip creating the final Git commit and tag:

# Automatically detect the release type
php artisan vs-version:no-commit

# Explicitly specify the version type
php artisan vs-version:no-commit major
php artisan vs-version:no-commit minor
php artisan vs-version:no-commit patch

List all registered commit types and scopes:

php artisan vs-version:list

Requirements

  • PHP 8.2+
  • Laravel 11 or 12
  • Git available in PATH
  • voral/version-increment (installed automatically as a dependency)

Configuration

The adapter uses the same configuration file as the original CLI tool.
Create .vs-version-increment.php in your project root to customize:

  • rules for determining major/minor/patch increments,
  • CHANGELOG.md formatting,
  • ignoring untracked files,
  • handling squashed commits,
  • custom commit types, and more.

See the full documentation: vs-version-incrementor Configuration Guide

Implementation Details

This package is a thin wrapper around the original utility: it invokes ./vendor/bin/vs-version-increment with the appropriate arguments and flags, ensuring full behavioral parity with the standalone CLI tool.

License

MIT. See LICENSE for details.

Depends on: vs-version-incrementor — automated versioning based on Git history.

voral/laravel-version-increment 适用场景与选型建议

voral/laravel-version-increment 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 voral/laravel-version-increment 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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