1. Go to this page and download the library: Download voku/agent-loop 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-loop example snippets
declare(strict_types=1);
namespace YourApp;
use voku\AgentKanban\ExternalIssue\ExternalIssueProvider;
use voku\AgentKanban\ExternalIssue\ExternalIssueRecord;
final class JiraExternalIssueProvider implements ExternalIssueProvider
{
public function systemName(): string
{
return 'jira';
}
/** @return list<ExternalIssueRecord> */
public function fetchActiveIssues(string $query): array
{
// $query is whatever you pass via --query (e.g. a JQL string);
// connect to your own Jira client here, never to agent-kanban.
return [];
}
}
bash
vendor/bin/agent-loop edit 'Legacy\ResourceService::save' \
--runner=auto \
--replace-old='$legacyUser->regionId' \
--replace-new='$legacyUser->getCurrentRegionId()' -- \
'Replace the deprecated region property exactly once.'
bash
rtk summary vendor/bin/agent-loop edit 'App\Service\UserService::save' --runner=auto \
--replace-old='$legacyUser->regionId' --replace-new='$legacyUser->getCurrentRegionId()' -- \
'Replace the deprecated region property.'
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.