定制 anascloud/zkteko 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

anascloud/zkteko

Composer 安装命令:

composer require anascloud/zkteko

包简介

A Laravel package for ZKTeco biometric devices, ported from a Python implementation.

README 文档

README

A Laravel package for ZKTeco biometric devices, ported from a Python implementation.

Installation

You can install the package via composer:

composer require anascloud/zkteko

Configuration

Publish the configuration file:

php artisan vendor:publish --provider="Anascloud\Zkteko\ZktekoServiceProvider" --tag="zkteko-config"

Set your device details in your .env file:

ZKTEKO_IP=192.168.10.79
ZKTEKO_PORT=4370
ZKTEKO_PASSWORD=2837

Usage

Direct Usage

use Anascloud\Zkteko\ZKTeco;

$zk = new ZKTeco('192.168.10.79', 4370, 2837);

if ($zk->connect()) {
    $attendance = $zk->getAttendance();
    
    foreach ($attendance as $log) {
        // Process logs
    }
    
    $zk->disconnect();
}

Facade Usage

use Anascloud\Zkteko\Facades\Zkteko;

if (Zkteko::connect()) {
    $attendance = Zkteko::getAttendance();
    Zkteko::disconnect();
}

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-14