PHP code example of xiaodi / hik
1. Go to this page and download the library: Download xiaodi/hik 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/ */
xiaodi / hik example snippets
use Hik\Config;
use Hik\Resource\Resource;
use Hik\Worker;
$config = new Config($config->get('hik'));
$client = $client->create([
'base_uri' => $config->getBaseUri()
]);
$worker = new Worker($client, $config);
$app = Resource::AcsDoor($worker);
$app->acsDoorList();