Skip to content

Commit

Permalink
update installation document.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesstif committed Mar 26, 2015
1 parent 3a52f2a commit a1e1aa1
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@

# Installation

1. Download and Install PHP Composer.

``` sh
curl -sS https://getcomposer.org/installer | php
```

2. Next, run the Composer command to install the latest version of php jira rest client.

``` sh
php composer.phar require lesstif/php-jira-rest-client dev-master
```

or add the following to your composer.json file.

```json
{
"require": {
"lesstif/php-jira-rest-client": "dev-master"
}
}
```

3. Then run Composer's install or update commands to complete installation.

```sh
php composer.phar install
```
composer require lesstif/php-jira-rest-client dev-master

4. After installing, you need to require Composer's autoloader:

```php
require 'vendor/autoload.php';
```

create config.jira.json file on your project root.
5. create config.jira.json file on your project root.

````json
{
"host": "https://jira.example.com",
Expand All @@ -15,7 +46,7 @@ create config.jira.json file on your project root.
"CURLOPT_SSL_VERIFYPEER": false,
"CURLOPT_VERBOSE": false,
"LOG_FILE": "jira-rest-client.log",
"LOG_LEVEL": "DEBUG"
"LOG_LEVEL": "INFO"
}
````

Expand Down

0 comments on commit a1e1aa1

Please sign in to comment.