mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 12:36:02 +03:00
Fixed README
This commit is contained in:
parent
449431b5c1
commit
ae1b570040
11
README.md
11
README.md
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user