定制 misodrobny/application-versioning 二次开发

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

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

misodrobny/application-versioning

最新稳定版本:0.1.1

Composer 安装命令:

composer require misodrobny/application-versioning

包简介

Laravel package for application versioning in your application with ease.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package will help to manage version of your application. It will create version.yaml file in root of your project and you can manage version of your application in this file.

For more about application versioning please follow Semantic Versioning

Installation

You can install the package via composer:

composer require misodrobny/application-versioning

After installation, you need to run install script which will publish config file and create default version.yaml file.

php artisan application-versioning:install

This is the contents of the published config file:

return [
    'version_file_path' => base_path('version.yaml'),
];

Initial formated version has following structure:

$major.$minor.$patch - $git_hash

$git_hash contains 7 characters long GIT HASH from current git commit.

Usage

For getting version of your application you can use facade ApplicationVersion

    echo ApplicationVersion::getFormatedVersion();

To increase version of your application you can use following methods:

    (new ApplicationVersioning)->increaseMajor();
    (new ApplicationVersioning)->increaseMinor();
    (new ApplicationVersioning)->increasePatch();

It is also possible to run

php artisan application-version:increase 

This command will generate Laravel Prompt window for choosing which version needs update:

┌ Which version do you want to increase? ──────────────────────┐
│   ○ major                                                    │
│   ○ minor                                                    │
│ › ● patch                                                    │
└──────────────────────────────────────────────────────────────┘

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固