PHP code example of mochaka / laravel-erply
1. Go to this page and download the library: Download mochaka/laravel-erply library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mochaka / laravel-erply example snippets
$clientGroups = Erply::getClientGroups();
Array
(
[status] => Array
(
[request] => getCustomerGroups
[requestUnixTime] => 1370507041
[responseStatus] => ok
[errorCode] => 0
[generationTime] => 0.0026431083679199
[recordsTotal] => 3
[recordsInResponse] => 3
)
[records] => Array
(
[0] => Array
(
[clientGroupID] => 17
[customerGroupID] => 17
[parentID] => 0
[name] => Loyal Customers
[pricelistID] => 0
[added] => 1283248838
[lastModified] => 1306833659
)
[1] => Array
(
[clientGroupID] => 18
[customerGroupID] => 18
[parentID] => 0
[name] => One-time Customers
[pricelistID] => 0
[added] => 1283248848
[lastModified] => 1306833655
)
[2] => Array
(
[clientGroupID] => 20
[customerGroupID] => 20
[parentID] => 0
[name] => Campaign sign-ups
[pricelistID] => 0
[added] => 1283248917
[lastModified] => 1306833695
)
)
)
print $clientGroups['records'][0]['clientGroupID']; // 17