bss/jira-addon
Composer 安装命令:
composer require bss/jira-addon
包简介
jira add on for laravel
关键字:
README 文档
README
- PHP >= 5.5.9
- php JsonMapper
- phpdotenv
Installation
-
Download and Install PHP Composer.
curl -sS https://getcomposer.org/installer | php -
Next, run the Composer command to install the latest version of php jira rest client.
php composer.phar require bss/jira-addon "^0.1"or add the following to your composer.json file.
{ "require": { "bss/jira-addon": "^0.1" } } -
Then run Composer's install or update commands to complete installation.
php composer.phar install
-
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
Configuration
you can choose loads environment variables either 'dotenv' or 'array'.
use dotenv
copy .env.example file to .env on your project root.
JIRA_HOST="https://your-jira.host.com" JIRA_USER="jira-username" JIRA_PASS="jira-password"
important-note: If you are using previous versions(a prior v1.2), you should move config.jira.json to .env and will edit it.
If you are developing with laravel framework(5.x), you must append above configuration to your application .env file.
use array
create Service class with ArrayConfiguration parameter.
use JiraRestApi\Configuration\ArrayConfiguration; use JiraRestApi\Issue\IssueService; $iss = new IssueService(new ArrayConfiguration( array( 'jiraHost' => 'https://your-jira.host.com', 'jiraUser' => 'jira-username', 'jiraPassword' => 'jira-password', ) ));
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-17