承接 kamiyang/ext-projectversion 相关项目开发

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

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

kamiyang/ext-projectversion

Composer 安装命令:

composer require kamiyang/ext-projectversion

包简介

Displays current project version based on 'VERSION' file or GIT revision.

README 文档

README

StyleCI Build Status Coverage Status Scrutinizer Code Quality

What is project version?

Project version is a TYPO3 extension that adds an entry to the TYPO3 system information in the toolbar. This entry is based either on the common 'VERSION' file or on the local GIT revision.

How do I install it?

First make sure you match the requirements:

Requirement Version
TYPO3 >=8.7 <9.6
php >= 7.0

Composer

Simply require the extension from packagist: composer require kamiyang/ext-projectversion

Or if you prefer typo3-ter: composer require typo3-ter/projectversion

TER

No composer available? No problem! You also can find this extension at TYPO3's Extension Repository (TER). You can straight download it from inside your TYPO3 as long, as your TYPO3 is not in composer mode.

How do I use it?

"VERSION"-file

Now, this is the easiest part. Create a file called VERSION (case sensitive) in your TYPO3 frontend docroot with the project version. This can be done like this: $ echo 1.0.0-rc.3 > /var/www/html/VERSION

Custom Path

You can use your own filename and path. Note that this path still has to be accessible from your web docroot. The configuration can be done in the ExtensionConfiguration. It is also possible to change the directory of the 'VERSION'-file. Only provide a directory path (with trailing slash '/') and it will automatically search for an file called 'VERSION'.

Examples: We assume that the web document root (PATH_site) is /var/www/html.

Configured Path Absolute filename
(empty - default) /var/www/html/VERSION
MyVersion /var/www/html/MyVersion
typo3conf/ /var/www/html/typo3conf/VERSION
./My/Custom/Version/File/In/Some/Nested/File/Structure /var/www/html/./My/Custom/Version/File/In/Some/Nested/File/Structure

GIT

Since release 0.3.0 git is supported. This must be manually activated. In order to use git, make sure it's available! Common case is that the local development environment is based on docker images. Many docker images do not have git out of the box available. To activate it, simply move via your preferred web browser into the TYPO3 backend. For TYPO3 v8.7 - go to "Extensions > Project Version" and configure the extension. The configuration screen will look like this on default:

default extension configuration

This has changed a bit in TYPO3 v9. To configure the extension go to "Settings > Configure extensions" and filter for "project version". The new configuration screen will look like this:

new default extension configuration screen

Configuration possibilities

basic.mode
Configuration Description
VERSION File (default) Fetches the current project version based on the path configured in basic.versionFilePath
GIT Uses GIT if available to resolve the project version in the format configured in basic.gitFormat
GIT (VERSION file as fallback) Will use GIT as preferred resolving method. If not available will fallback to VERSION file.
basic.gitFormat
Configuration Description Example
Revision Will only fetch the revision as project version git revision example
[revision] Branch (default) Will fetch the current revision and branch git revision and branch example
[revision] Tag Will fetch the current revision and tag git revision and tag example
Branch Will only fetch the current branch git branch example
Tag Will only fetch the current tag git tag example

Roadmap to v1.0.0

  • Static VERSION file support
  • Add ability to configure "VERSION"-file path
  • GIT revision support
  • GIT tag/branch based on revision support
  • Add documentation of this extensions features
  • Upload extension to packagist.org
  • Upload extension to TER
  • Support TYPO3 v9.4
  • Support TYPO3 v9 LTS
  • Achieve overall test coverage above 95%
  • Configure TravisCI
  • Configure StyleCI
  • Configure Coveralls
  • Static VERSION value via extension configuration

Milestone for v0.6.0

  • Ability to "hardcode" static project version via the TYPO3 backend

Note

The TYPO3 v8 version of this extension will not be maintained after release 1.0.0! But this should be no problem because TYPO3 v8 only gets bugfixes. This means, version 1.0.0 should stay compatible with all further TYPO3 v8 releases!

After releasing version 1.0.0, which will be around the release of the first TYPO3 v9 LTS version, EXT:project_version will be refactored to php7.2 and will integrate TYPO3 v9 features.

kamiyang/ext-projectversion 适用场景与选型建议

kamiyang/ext-projectversion 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.09k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「git」 「version」 「typo3」 「TYPO3 CMS」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 kamiyang/ext-projectversion 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 kamiyang/ext-projectversion 我们能提供哪些服务?
定制开发 / 二次开发

基于 kamiyang/ext-projectversion 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2018-05-24