PHP code example of oommgg / soyal
1. Go to this page and download the library: Download oommgg/soyal 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/ */
oommgg / soyal example snippets
use Oommgg\Soyal\Ar727;
$soyal = new Ar727('192.168.1.66', 1621);
$result = $soyal->getCard(2);
$result = $soyal->resetCards(0, 1);
$i = 0;
for ($i=0; $i < 16383; $i++) {
$soyal->setCard($i, random_int(1, 65535), random_int(1, 65535));
}
$result = $soyal->getOldestLog();
$soyal->deleteOldestLog();
$result = $soyal->getTime();
$result = $soyal->setTime('2018-11-11 11:11:11');
$result = $soyal->setTime(); //set client local time
$result = $soyal->getStatus();