承接 oliveris/git-version 相关项目开发

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

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

oliveris/git-version

Composer 安装命令:

composer require oliveris/git-version

包简介

Gets the git version and returns it as a string.

README 文档

README

Helpers around Git Tag versions these include getting the latest version and getting the date of the version.

Usage

Pull in the composer package by running the command below:

composer require oliveris/git-version

Import the namspace into the class (autoloading)

use GitVersion\GitVersion

Examples

To get the latest git version string

Below is an example that returns a string of the git version.

GitVersion::getLatestVersion()

To get the date a git version was created at

Below is an example that returns a date string the passed version tag was created at. The optional second parameter is a date format you need it to return as.

// Get the version you require
$git_version = GitVersion::getLatestVersion()

// Get the date for that version
GitVersion::getVersionDate($git_version, 'd-m-Y')

Tests

To run the tests set up the package in an environment you can run php and open tests/index.php

Built With

  • PHP

Versioning

We use Semantic Versioning 1.0.0, for example v1.0.0.

Authors

  • Sam Oliveri - Software Developer

License

GIT Version is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固