承接 fox/laravel-application-version 相关项目开发

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

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

fox/laravel-application-version

最新稳定版本:3.1.0

Composer 安装命令:

composer require fox/laravel-application-version

包简介

Fox's smarter application version manager

README 文档

README

Fox's smarter application version manager :)

Requirements

  • PHP >= 8.0.2
  • Composer >= 2.0
  • Supported Laravel Framework versions: 7.0, 8.0 and 9.0

Installation

Use composer to install and use this package in your project.

Install them with

composer require "fox/laravel-application-version"

and you are ready to go!

Laravel

The service provider will automatically get registered. Or you may manually add the service provider to your config/app.php file:

'providers' => [
    // ...
    Fox\Application\Version\ServiceProvider::class,
];

Usage

You can use the provided classes directly for your own purpose.

Version

$myVersion = new Fox\Application\Version\Version(1, 0, 23, 'alpha');

echo $myVersion->major();
echo $myVersion->minor();
echo $myVersion->patch();
echo $myVersion->build();
echo (string) $myVersion;

This will generate the following output:

1
0
23
alpha
1.0.23-alpha

Version Manager

You may also use the version manager to determine the current version of your application by parsing the composer.json file and run git to receive the last commit id of your working directory used as additional build information.

$versionManager = app('version-manager');
$myVersion = $versionManager->getCurrentVersion();

Development - Getting Started

See the CONTRIBUTING file.

Changelog

See the CHANGELOG file.

License

See the LICENSE file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-03