1. Go to this page and download the library: Download voku/agent-kanban 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/ */
voku / agent-kanban example snippets
use voku\AgentKanban\Board;
use voku\AgentKanban\Config\BoardConfig;
use voku\AgentKanban\Repository\MarkdownCardRepository;
use voku\AgentKanban\Query\BoardQueryService;
use voku\AgentKanban\Verification\BoardVerifier;
$config = BoardConfig::default('ITPNG');
$repository = new MarkdownCardRepository($rootPath, $config);
$board = new Board($config, $repository->loadAll(), $repository->resolveCardDirectory());
$next = (new BoardQueryService($board))->nextPullCandidates();
$report = (new BoardVerifier())->verify($board);
if (!$report->isValid()) {
foreach ($report->errors() as $violation) {
// $violation->code, ->message, ->severity, ->cardId, ->field, ->file
}
}
use voku\AgentKanban\Mutation\CardMutationService;
use voku\AgentKanban\Domain\CardId;
use voku\AgentKanban\Domain\Lane;
$mutation = new CardMutationService($rootPath, $config, $repository);
$result = $mutation->move(CardId::fromString('ITPNG-123'), Lane::fromString('DOING'), actor: 'codex');
// $result->newRevision, $result->transition, ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.