PHP code example of univerze / laravel-jira

1. Go to this page and download the library: Download univerze/laravel-jira 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/ */

    

univerze / laravel-jira example snippets


'providers' => [
    // ...
    Univerze\Jira\JiraServiceProvider::class,
];

'aliases' => [
  	// ...
  	'Jira' => Univerze\Jira\Facade\JiraFacade::class,
];

$response = Jira::search( 'project = YourProject AND labels = somelabel' );

$issue = Jira::create( array(
    'project'     => array(
        'key' => 'YourProject'
    ),
    'summary'     => 'This is the summary',
    'description' => 'Description here',
    'issuetype'   => array(
        'name' => 'Bug'
    )
) );

Jira::update( 'ISSUE-1234', array(
    'description' => 'this is my new description'
) );