1. Go to this page and download the library: Download fr3nch13/cakephp-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/ */
fr3nch13 / cakephp-jira example snippets
/**
* Bootstrap function for browser-based access.
*
* @return void
*/
public function bootstrap()
{
/**
* Load stuff needed from the cakephp core.
*/
parent::bootstrap();
// .... other code here.
/**
* Load all of the plugins you need.
*/
$this->addPlugin('Fr3nch13/Jira');
// .... other code here.
}
/**
* Initialize method
*
* @return void
*/
public function initialize()
{
parent::initialize();
// .... other code here.
if (Plugin::isLoaded('Fr3nch13/Jira')) {
$this->loadHelper('Jira', ['className' => 'Fr3nch13/Jira.Jira']);
}
// .... other code here.
}
/// ... previous settings.
'Jira' => [
'schema' => 'https',
'host' => 'jira.domain.com',
'username' => 'your-jira-username',
'apiKey' => 'you-jira-username-or-api-key',
'projectKey' => 'your-project-key', // The code before the issue id ex: PROJECT-81, it would be PROJECT.
]
/// ... more settings.
if (Plugin::isLoaded('Fr3nch13/Jira')) :
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.