From ae1b5700400ff6d82ac4a479108c38968145d251 Mon Sep 17 00:00:00 2001 From: Travis Swientek Date: Sat, 3 Aug 2013 14:58:35 -0700 Subject: [PATCH] Fixed README --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f6f90b3..8a4c2b7 100644 --- a/README.md +++ b/README.md @@ -18,15 +18,18 @@ curl -sS https://getcomposer.org/installer | php # Add Mailgun as a dependency 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): ``` 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 ----- 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.