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) diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..00a3d80 --- /dev/null +++ b/composer.json @@ -0,0 +1,11 @@ +{ + "name": "nutshellcrm/nutshell-api", + "description": "A PHP library for the Nutshell API", + "keywords": ["nutshell","crm"], + "license": "MIT", + "autoload": { + "files": [ + "NutshellApi.php" + ] + } +}