PHP code example of asikam / softone
1. Go to this page and download the library: Download asikam/softone 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/ */
asikam / softone example snippets
use Asikam\Softone\SoftoneBrowser;
$softone = new SoftoneBrowser();
$softone->getBrowserInfo("CUSTOMER",'CUSTOMER.AFM=000000000*=;');
$softone->getBrowserData();
foreach ($softone->data as $item) {
echo $item['CUSTOMER.NAME']."\n";
echo $item['CUSTOMER.AFM']."\n";
}
use Asikam\Softone\Softone;
$softone = new Softone();
$softone->setService('getBrowserInfo');
$softone->setObject('CUSTOMER');
$softone->setFilters('CUSTOMER.AFM=000000*=;');
$softone->send();
$softone->setService('getBrowserData');
$softone->setReqId($softone->reqID);
$softone->limit(10);
$softone->send();
foreach ($softone->data as $item) {
echo $item['CUSTOMER.NAME']."\n";
echo $item['CUSTOMER.AFM']."\n";
}