PHP code example of laijim / playbook-conclusion
1. Go to this page and download the library: Download laijim/playbook-conclusion 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/ */
laijim / playbook-conclusion example snippets
composer
$parser = new \Laijim\PlaybookConclusion\Conclusion(
new \Laijim\PlaybookConclusion\Impl\RegExParser(
new \Laijim\PlaybookConclusion\Entity\Result()
)
);
$resultObj = $parser->parse($str);
echo $resultObj->finalResult;
echo $resultObj->isSuccess();
echo $resultObj->isFail();
var_dump($resultObj->verbose);
var_dump($resultObj->statistics);
foreach ($resultObj as $row){
var_dump($row);
}