1
0
mirror of synced 2024-11-24 22:36:06 +03:00

Update README.md, composer.json fixed

This commit is contained in:
kruglov 2013-07-04 12:44:41 +04:00
parent fae840b108
commit 960d931ddc
2 changed files with 34 additions and 5 deletions

View File

@ -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.

View File

@ -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"
} }
} }
} }