定制 elegasoft/product-version 二次开发

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

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

elegasoft/product-version

最新稳定版本:v0.0.1

Composer 安装命令:

composer require elegasoft/product-version

包简介

Package for managing the semver for the repository

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

A package to display the latest git tag version and will also allow you to easily and/or programmatically bump the major, minor and patch tags for the repository.

# Basic Semver Looks Like:
{major}.{minor}.{patch}

Installation

You can install the package via composer:

composer require elegasoft/product-version

Usage (Command Line/Console)

To see the current semver version of the repository

php artisan product-version:current

# Output Example: v1.0.3-125-0ca4a7187

The default is to bump the patch version of the semver

# Starting with: v1.0.3-125-0ca4a7187

php artisan product-version:bump

# Output Example: v1.0.4-125-0ca4a7187

To bump the major semver version of the repository

# Starting with: v1.0.3-125-0ca4a7187

php artisan product-version:bump --major

# Output Example: v2.0.0-125-0ca4a7187

To bump the minor semver version of the repository

# Starting with: v1.0.3-125-0ca4a7187

php artisan product-version:bump --minor

# Output Example: v1.1.0-125-0ca4a7187

Usage (Programmatic)

To see the current semver version of the repository

ProductVersion::current(); 

// Output Example: v1.0.3-125-0ca4a7187

The default is to bump the patch version of the semver

// Starting w: v1.0.3-125-0ca4a7187

ProductVersion::bump(); 

// Output Example: v1.0.4-125-0ca4a7187

To bump the major semver version of the repository

// Starting w: v1.0.3-125-0ca4a7187

ProductVersion::bump($major = true, $minor = false); 

// Output Example: v2.0.0-125-0ca4a7187

To bump the minor semver version of the repository

// Starting w: v1.0.3-125-0ca4a7187

ProductVersion::bump($major = false, $minor = true); 

// Output Example: v1.1.0-125-0ca4a7187

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email jason@elegasoft.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固