diff --git a/.travis.yml b/.travis.yml index 5bb06d9..800d6ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: php php: - 5.5 - 5.6 + - 7.1 - hhvm before_script: diff --git a/README.md b/README.md index 77acb37..a3b84c5 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,10 @@ * [Further documentation](#further-documentation) # Installation -Add the following to your composer.json - -```json -{ - "require": { - "pacely/mailchimp-apiv3": "dev-master" - } -} +Install the package through Composer: + +```bash +composer require pacely/mailchimp-apiv3:dev-master ``` # Laravel Users @@ -58,7 +54,7 @@ If you prefer [facades](http://laravel.com/docs/5.1/facades), make sure you add #### Configuration There are only one configuration option you need to fill in. Publish the config by running: - php artisan vendor:publish + php artisan vendor:publish --provider="Mailchimp\MailchimpServiceProvider" Now, the config file will be located under `config/mailchimp.php`: @@ -209,4 +205,4 @@ $result = $mc->get('lists/e04d611199', [ ``` # Further documentation -You should read through Mailchimp's API v3 [documentation](http://kb.mailchimp.com/api/) (I know, it's pretty rough. Should get better soon.). To find out which resources is available, take a look at the [JSON API Schema for Mailchimp](https://us10.api.mailchimp.com/schema/3.0/). \ No newline at end of file +You should read through Mailchimp's API v3 [documentation](http://kb.mailchimp.com/api/) (I know, it's pretty rough. Should get better soon.). To find out which resources is available, take a look at the [JSON API Schema for Mailchimp](https://us10.api.mailchimp.com/schema/3.0/). diff --git a/composer.json b/composer.json index a37e45e..6c1a74c 100644 --- a/composer.json +++ b/composer.json @@ -31,6 +31,14 @@ "extra": { "branch-alias": { "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Mailchimp\\MailchimpServiceProvider" + ], + "aliases": { + "MC": "Mailchimp\\MailchimpFacade" + } } }, "minimum-stability": "dev"