Fixed README

This commit is contained in:
Travis Swientek 2013-08-03 14:58:35 -07:00
parent 449431b5c1
commit ae1b570040

View File

@ -18,15 +18,18 @@ curl -sS https://getcomposer.org/installer | php
# Add Mailgun as a dependency # Add Mailgun as a dependency
php composer.phar require mailgun/mailgun-php-sdk:~0.1 php composer.phar require mailgun/mailgun-php-sdk:~0.1
``` ```
Next, require Composer's autoloader, in your application, to automatically load the Mailgun SDK in your project:
```PHP
require 'vendor/autoload.php';
```
For shared hosts with SSH access, you might need to run this instead (contact your shared host for assistance): For shared hosts with SSH access, you might need to run this instead (contact your shared host for assistance):
``` ```
php -d detect_unicode=Off -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));" php -d detect_unicode=Off -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
``` ```
Next, require Composer's autoloader, in your application, to automatically load the Mailgun SDK in your project:
```PHP
require 'vendor/autoload.php';
use Mailgun\MailgunClient;
```
Usage Usage
----- -----
Using the SDK should feel simple, if you're already familiar with our API endpoints. If not, no problem... When you're reviewing our documentation, the endpoints are expressed as a class in the SDK to make things easier. Using the SDK should feel simple, if you're already familiar with our API endpoints. If not, no problem... When you're reviewing our documentation, the endpoints are expressed as a class in the SDK to make things easier.