Update README.md, composer.json fixed
This commit is contained in:
parent
fae840b108
commit
960d931ddc
31
README.md
31
README.md
@ -3,7 +3,36 @@ IntaroCRM REST API client
|
|||||||
|
|
||||||
PHP Client for [IntaroCRM REST API](http://docs.intarocrm.ru/rest-api/).
|
PHP Client for [IntaroCRM REST API](http://docs.intarocrm.ru/rest-api/).
|
||||||
|
|
||||||
Requirements:
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
* PHP version 5.2 and above
|
* PHP version 5.2 and above
|
||||||
* PHP-extension CURL
|
* PHP-extension CURL
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Add IntaroCRM REST API client in your composer.json:
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
"require": {
|
||||||
|
"intaro/crm-rest-api": "1.0.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Usage
|
||||||
|
------------
|
||||||
|
|
||||||
|
### Create API clent class
|
||||||
|
|
||||||
|
``` php
|
||||||
|
|
||||||
|
$crmApiClient = new \IntaroCrmRestApi('http://demo.intarocrm.ru', 'T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH');
|
||||||
|
|
||||||
|
```
|
||||||
|
Constructor arguments are:
|
||||||
|
|
||||||
|
1. IntaroCRM url address.
|
||||||
|
2. Your site API Token.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "intaro/crm-rest-api",
|
"name": "intarocrm/crm-rest-api",
|
||||||
"description": "PHP class that provides a simple way to interact with Intaro CRM Rest API",
|
"description": "PHP Client for IntaroCRM REST API",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"keywords": ["api", "Intaro CRM"],
|
"keywords": ["api", "Intaro CRM"],
|
||||||
"homepage": "http://www.intarocrm.ru/",
|
"homepage": "http://www.intarocrm.ru/",
|
||||||
@ -19,11 +19,11 @@
|
|||||||
"email": "support@intarocrm.ru"
|
"email": "support@intarocrm.ru"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": { "Intaro": "lib/" }
|
"psr-0": { "IntaroCRM": "lib/" }
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.0.x-dev"
|
"dev-master": "1.0.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user