From d404eabb74e6f9c704e82fe16c07f740afbc0946 Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Tue, 31 Oct 2017 14:18:26 +0300 Subject: [PATCH 1/4] Specified service provider name on publishing package config You don't want to publish configs and assets of other packages, don't you? --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77acb37..2107b19 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,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 +209,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/). From e33e373c84671f74830c59bb85d7a0d255acf62f Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Tue, 31 Oct 2017 14:23:57 +0300 Subject: [PATCH 2/4] Implemented package auto-discovery --- composer.json | 8 ++++++++ 1 file changed, 8 insertions(+) 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" From aba11fbce46961949195dd59e58717995a7c5bca Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Tue, 31 Oct 2017 14:30:36 +0300 Subject: [PATCH 3/4] Improved installation instructions --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2107b19..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 From 5a43e176ab24f5cf9f6eab5c9df82fe1d29d327c Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Tue, 31 Oct 2017 14:37:11 +0300 Subject: [PATCH 4/4] Requested testing on PHP 7.1 (current stable) --- .travis.yml | 1 + 1 file changed, 1 insertion(+) 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: