PHP code example of athwari / laravel-zkteco-adms

1. Go to this page and download the library: Download athwari/laravel-zkteco-adms 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/ */

    

athwari / laravel-zkteco-adms example snippets


use ZktecoAdms;

$device = ZktecoAdms::registerDevice('SN123456');

if (ZktecoAdms::deviceExists('SN123456')) {
    ZktecoAdms::setDeviceTimezone('SN123456', 'Asia/Riyadh');
}

$commandId = ZktecoAdms::sendCheckCommand('SN123456');

ZktecoAdms::commandBuilder()->reboot('SN123456');

use Athwari\LaravelZktecoAdms\Facades\ZktecoAdms;
bash
php artisan vendor:publish --tag="zkteco-adms-config"
bash
php artisan vendor:publish --tag="zkteco-adms-migrations"
php artisan migrate