PHP code example of spiria-digital / laravel-jira-rest-client
1. Go to this page and download the library: Download spiria-digital/laravel-jira-rest-client 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/ */
spiria-digital / laravel-jira-rest-client example snippets
'providers' => [
// ...
Atlassian\JiraRest\JiraRestServiceProvider::class,
],
'aliases' => [
// ...
'Jira' => Atlassian\JiraRest\Facades\Jira::class,
],
$request = new \Atlassian\JiraRest\Requests\Issue\IssueRequest;
$response = $request->get('ISSUE-3');
$response = json_decode($response->getBody(), true);
$issue = jira()->issue('ISSUE-3')->get();
$issue = \Jira::issue('ISSUE-3')->get();
'client_options' => [
'auth' => \Atlassian\JiraRest\Requests\Middleware\BasicAuthMiddleware::class,
],
'client_options' => [
'auth' => \Atlassian\JiraRest\Requests\Middleware\OAuthMiddleware::class,
],
/*auth user*/
$issue = \Jira::issue('ISSUE-3')->get();
/* Specific user */
$issue = jira("jdoe")->issue('ISSUE-123')->get();
shell
php artisan vendor:publish --provider="Atlassian\JiraRest\JiraRestServiceProvider"