michal-kocarek/teamcity-messages
Composer 安装命令:
composer require michal-kocarek/teamcity-messages
包简介
Write TeamCity service messages from PHP.
关键字:
README 文档
README
This PHP library simplifies formatting and writing TeamCity service messages.
Installation
To add TeamcityMessages as a local, per-project dependency to your project, simply add a dependency on michal-kocarek/teamcity-messages to your project's composer.json file.
Here is a minimal example of a composer.json file that just defines a dependency on TeamcityMessages:
{
"require": {
"michal-kocarek/teamcity-messages": "^1.2"
}
}
Usage
Here's the basic example. MessageLogger instance dumps everything through the writer.
StdOutWriter echoes output directly to script standard output. (You may use CallbackWriter to pass messages to arbitrary callback.)
Code like this:
use MichalKocarek\TeamcityMessages\MessageLogger; use MichalKocarek\TeamcityMessages\Writers\StdoutWriter; $logger = new MessageLogger(new StdoutWriter()); $logger->progressMessage('Reticulating splines...'); $logger->block('Counting llamas...', null, function(MessageLogger $logger) { $logger->logWarning('Too many llamas!'); $logger->publishArtifacts('logs/llamas-count.csv'); });
produces following output:
##teamcity[progressMessage timestamp='2016-03-16T23:29:37.120555+0000' message='Reticulating splines...']
##teamcity[blockOpened timestamp='2016-03-16T23:29:37.134303+0000' name='Counting llamas...']
##teamcity[message timestamp='2016-03-16T23:29:37.134535+0000' text='Too many llamas!' status='WARNING']
##teamcity[publishArtifacts timestamp='2016-03-16T23:29:37.134635+0000' path='logs/llamas-count.csv']
##teamcity[blockClosed timestamp='2016-03-16T23:29:37.134993+0000' name='Counting llamas...']
See MessageLogger public methods for more info about the usage and link below for detailed message specification.
Links
Authors
Michal Kočárek michal.kocarek@brainbox.cz - https://twitter.com/michalkocarek
License
This library is licensed under the MIT License – see the LICENSE file for details.
michal-kocarek/teamcity-messages 适用场景与选型建议
michal-kocarek/teamcity-messages 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.19k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 03 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「teamcity」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 michal-kocarek/teamcity-messages 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 michal-kocarek/teamcity-messages 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 michal-kocarek/teamcity-messages 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The tool converts different error reporting standards for deep integration with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc)
Format ouput of behat to interact with TeamCity Continuous Integration Server
Integrating codeception builds with codeception
CLI tools to manage output errors formatting for junit, checkstyle, teamcity, gitlab and github error formats
Makes TeamCity display phpspec execution results in real-time.
Little tool to help build DotEnv (.env) files from templates
统计信息
- 总下载量: 16.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-07