From a91c67cb309a3b3a6aaddc3b7de3512ee723bd4e Mon Sep 17 00:00:00 2001 From: unclecheese Date: Thu, 21 May 2015 16:49:54 +1200 Subject: [PATCH 1/5] Add composer.json --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..3f84405 --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "name": "nutshellcrm/nutshell-api", + "description": "A PHP library for the Nutshell API", + "keywords": ["nutshell","crm"] +} From 50e226198b07249edcee3dd2ea4de512d66693c1 Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Fri, 22 May 2015 15:11:36 +1200 Subject: [PATCH 2/5] Required to autoload the API wrapper --- composer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3f84405..a136c84 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,10 @@ { "name": "nutshellcrm/nutshell-api", "description": "A PHP library for the Nutshell API", - "keywords": ["nutshell","crm"] + "keywords": ["nutshell","crm"], + "autoload": { + "files": [ + "NutshellApi.php" + ] + } } From b86fd8da4bf5ab283c7279f9da8613b2fab4380a Mon Sep 17 00:00:00 2001 From: Andy Fowler Date: Tue, 12 Jan 2016 11:30:11 -0500 Subject: [PATCH 3/5] fixup whitespace --- composer.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index a136c84..9aac8b6 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { - "name": "nutshellcrm/nutshell-api", - "description": "A PHP library for the Nutshell API", - "keywords": ["nutshell","crm"], - "autoload": { - "files": [ - "NutshellApi.php" - ] + "name": "nutshellcrm/nutshell-api", + "description": "A PHP library for the Nutshell API", + "keywords": ["nutshell","crm"], + "autoload": { + "files": [ + "NutshellApi.php" + ] } } From 36cc3307d84943a53a442b4c9706c3036b887717 Mon Sep 17 00:00:00 2001 From: Andy Fowler Date: Tue, 12 Jan 2016 11:33:34 -0500 Subject: [PATCH 4/5] add MIT license to composer.json --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 9aac8b6..00a3d80 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "name": "nutshellcrm/nutshell-api", "description": "A PHP library for the Nutshell API", "keywords": ["nutshell","crm"], + "license": "MIT", "autoload": { "files": [ "NutshellApi.php" From bd4928791bef51636ecd357055ca197a61274d3d Mon Sep 17 00:00:00 2001 From: Andy Fowler Date: Tue, 12 Jan 2016 11:38:19 -0500 Subject: [PATCH 5/5] mention composer in README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index af87e0a..aad93a8 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ Read the comments in `NutshellApi.php` for additional information about the clas The `NutshellApi` class provides synchronous (blocking) API calls. It is possible to write an API class which provides asynchronous calls using the `id` field specified in [JSON-RPC](http://groups.google.com/group/json-rpc/web/json-rpc-2-0). +## Composer + +Thanks to the community [for nudging us to make this code compatible with Composer](https://github.com/nutshellcrm/nutshell-api-php/pull/5). While it's not meant to be a fully-supported SDK, you can use [composer](https://getcomposer.org/) to quickly add this project to your own. + ## Additional Reading * On API keys and permissions: [Authentication](http://www.nutshell.com/api/authentication.html)