PHP code example of foskym / flarum-issue-tracking
1. Go to this page and download the library: Download foskym/flarum-issue-tracking 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/ */
foskym / flarum-issue-tracking example snippets
use Flarum\Extend;
return [
new Extend\Locales(__DIR__.'/locale'),
(new \FoskyM\IssueTracking\Extend\PlatformProvider())
->provide(PlatformProvider::class)
];
// ...
use FoskyM\IssueTracking\AbstractPlatformProvider;
use FoskyM\IssueTracking\AbstractIssue;
use FoskyM\IssueTracking\AbstractProgress;
// ...
class PlatformProvider extends AbstractPlatformProvider
{
public $key = "foskym-issue-tracking-youtrack";
public $name = "YouTrack";
public function availableSettings(): array
{
return [
'url' => '
class IssueCreated
{
/**
* @var User
*/
public $actor;
/**
* @var \FoskyM\IssueTracking\Model\Issue
*/
public $issue;
/**
* @var Discussion
*/
public $discussion;
}
class CommentPosted
{
/**
* @var User
*/
public $actor;
/**
* @var CommentPost
*/
public $post;
/**
* @var string
*/
public $issueId;
}
sh
composer update foskym/flarum-issue-tracking:"*"
php flarum migrate
php flarum cache:clear
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.