Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
Included instructions to add this package to the project's composer.json file.
  • Loading branch information
adilbaig committed Apr 3, 2014
1 parent 8785f21 commit 9ef1e42
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,24 @@ PHP PagerDuty Integration API
=========
This library provides a PHP class to trigger events using the [PagerDuty Integration API](http://developer.pagerduty.com/documentation/integration/events)

Installation :
----
Add this line to your project's `composer.json`
````
{
...
"require": {
"adilbaig/pagerduty": "dev-master"
}
...
}
````

Usage:
----
````
use \PagerDuty\PagerDuty;
$pagerDuty = new PagerDuty("my GUID");
$request = $pagerDuty->makeRequest(PagerDuty::TYPE_TRIGGER, "Service is down");
echo "Request : ", json_encode($request);
Expand Down

0 comments on commit 9ef1e42

Please sign in to comment.