gianarb/version-module

此包已被弃用且不再维护。未建议替代包。

Sebastianbergmann/version 集成到 ZF2

0.0.1 2015-03-16 22:44 UTC

This package is auto-updated.

Last update: 2021-03-15 09:16:13 UTC


README

Sebastion\Version 在 ZF2 中的集成

Sebastian\Version

Version 是一个库,帮助管理 Git 托管 PHP 项目的版本号。

入门

你在项目中使用 git release 吗?!太棒了!

现在你可以使用 $this->getServiceLocator()->get("Config")['version'] 来恢复此信息

视图助手

你会管理静态资源的版本吗?你会在网站的页脚中打印应用程序的版本吗?

你可以使用视图助手

$this->getVersion();

安装

composer require gianarb/version-module

测试

vendor/bin/phpunit