da-hong/fengchaoiot-php

There is no license information available for the latest version (dev-master) of this package.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/da-hong/fengchaoiot-php

dev-master 2019-09-16 16:02 UTC

This package is not auto-updated.

Last update: 2025-12-17 20:04:17 UTC


README

描述

针对蜂巢物联的功能的API封装。不保证使用

安装

composer require da-hong/fengchaoiot-php

使用

A. token申请

use FengChaoIOT\Auth\FengChaoIOTAuth as Auth;
$auth = new Auth('id','scr');
$response = $auth();
$token = $response['data']['accessToken'];

B. 门锁使用

new $Devices
  1. 门禁卡使用
    $cards = new Cards()
    //写卡
    $cards->make();
    //读卡
    $cards->read();