sado729/project-version 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sado729/project-version

最新稳定版本:1.0.4

Composer 安装命令:

composer require sado729/project-version

包简介

Laravel Project Version Automatically Increase

README 文档

README

The package automatically updates the version of your project based on the changes you make on git. Versioning is marked as "major.minor.patch". The patch value increases with each file change you make. If a new file is added, the minor part is incremented and the patch is reset.

Installation

composer require sado729/project-version

After

php artisan vendor:publish --provider="Sado729\ProjectVersion\ProjectVersionServiceProvider"

to publish the Assets and Config. After that, you need to edit the configuration file (config/project-version.php) according to your project. In the git_repository_name section, you need to enter the name of your project's github repository

Usage

To use the package, you must first have an informations table with a version column. If not, you can create it with the following command:

php artisan migrate

Everything is ready! You should run the following command instead of issuing the git pull command. At this time, the git pull command is automatically executed and the version is changed:

php artisan git:pull

image

License

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

More from me

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-04