PHP code example of michal-kocarek / teamcity-messages
1. Go to this page and download the library: Download michal-kocarek/teamcity-messages library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
michal-kocarek / teamcity-messages example snippets
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');
});