承接 tendersrl/version 相关项目开发

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

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

tendersrl/version

Composer 安装命令:

composer require tendersrl/version

包简介

Automatically create git tag about your Laravel app version

README 文档

README

Automatically create git tag about your Laravel app version

Latest Version on Packagist Build Status StyleCI MIT licensed Total Downloads

Description

This package is a Laravel (5.5+) utility which helps you keep and manage your application version, increment version numbers (major, minor, patch, commit), and can also use your last commit hash.

This package is an extension of https://github.com/antonioribeiro/version, that let you to create automatically a git tag every time you update your app version.
Please refer to parent package to extensive documentation.

Easily increment your version numbers, using Artisan commands

php artisan version:minor

Which should ask you your commit message

$ Enter your commit message
>

Then should create a new git tag and should print the new version number

New patch: 11
MyApp version 2.6.11 (commit cb2afb64)

Available for all of them:

$ php artisan version:major   
$ php artisan version:minor   
$ php artisan version:patch   

Then you only need to push your commit and your tag:

$ git push --tags 

Formating tag

After publishing configuration, entry as tag-format the format you prefer to tag your commit.

tag-format: tag

You can also specify the tag format via the --tag-format option:

$ php artisan version:patch --tag-format=compact

Other available options

If you want to increment your app version without creating a commit or tag, you can use the --no-commit and --no-tag options

$ php artisan version:patch --no-commit --no-tag

Install

Via Composer

$ composer require tendersrl/version

Then publish the configuration file you'll have to:

$ php artisan vendor:publish --provider="TenderSrl\Version\VersionServiceProvider"

And you should be good to use it in your views:

@version

Minimum requirements

  • Laravel 5.5
  • PHP 7.0

License

This package is licensed under the MIT License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固