承接 ahidtechnologies/zkteco-biometric 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ahidtechnologies/zkteco-biometric

Composer 安装命令:

composer require ahidtechnologies/zkteco-biometric

包简介

Laravel package for ZKTeco biometric device integration with attendance management

README 文档

README

A comprehensive Laravel package for integrating ZKTeco biometric devices with attendance management systems.

Features

  • Device Management: Add, configure, and monitor ZKTeco biometric devices
  • Real-time Communication: Handle device handshakes, commands, and data synchronization
  • Attendance Tracking: Automatic attendance logging from biometric data
  • Employee Management: Sync employee fingerprints, cards, and photos with devices
  • Multi-timezone Support: Proper timezone handling for global deployments
  • Command System: Send commands to devices (create user, delete user, etc.)
  • Comprehensive Logging: Detailed logs for debugging and monitoring

Requirements

  • PHP 8.0 or higher
  • Laravel 10.0 or higher
  • MySQL/PostgreSQL database

Installation

Install the package via Composer:

composer require ahidtechnologies/zkteco-biometric

Publish and run the migrations:

php artisan vendor:publish --provider="AhidTechnologies\ZKTecoBiometric\ZKTecoBiometricServiceProvider" --tag="migrations"
php artisan migrate

Optionally, publish the configuration file:

php artisan vendor:publish --provider="AhidTechnologies\ZKTecoBiometric\ZKTecoBiometricServiceProvider" --tag="config"

Configuration

The package will automatically register the required routes. The default configuration includes:

  • API endpoints for device communication
  • Timezone handling
  • Attendance processing settings

Usage

Device Setup

  1. Add a Device:
use AhidTechnologies\ZKTecoBiometric\Models\BiometricDevice;

$device = BiometricDevice::create([
    'device_name' => 'Main Entrance',
    'serial_number' => 'BJHQ203160001',
    'device_ip' => '192.168.1.100'
]);
  1. Configure Device IP: Point your ZKTeco device to your Laravel application's URL with the following endpoints:
    • Handshake: GET /iclock/cdata
    • Attendance Data: POST /iclock/cdata
    • Commands: GET /iclock/getrequest
    • Command Results: POST /iclock/devicecmd

Employee Management

use AhidTechnologies\ZKTecoBiometric\Models\BiometricEmployee;

// Create biometric employee
$employee = BiometricEmployee::create([
    'biometric_employee_id' => '001',
    'user_id' => $user->id, // Your application's user ID
    'has_fingerprint' => true,
    'card_number' => '1234567890'
]);

Sending Commands to Device

use AhidTechnologies\ZKTecoBiometric\Models\BiometricCommand;

// Create user on device
BiometricCommand::create([
    'device_serial_number' => 'BJHQ203160001',
    'command_id' => 'CREATEUSER-001',
    'command' => "C:CREATEUSER-001:DATA USER PIN=001\tName=John Doe\n",
    'employee_id' => '001',
    'user_id' => $user->id,
    'status' => 'pending'
]);

Attendance Processing

The package automatically processes attendance data when received from devices. You can also manually process attendance:

use AhidTechnologies\ZKTecoBiometric\Models\BiometricAttendance;

// Get attendance records
$attendances = BiometricAttendance::where('user_id', $userId)
    ->whereDate('timestamp', today())
    ->get();

API Endpoints

The package registers the following API routes:

  • GET /iclock/cdata - Device handshake
  • POST /iclock/cdata - Attendance data submission
  • GET /iclock/getrequest - Command polling
  • POST /iclock/devicecmd - Command execution results

Models

BiometricDevice

Manages ZKTeco device information and status.

BiometricEmployee

Links application users with biometric device employee IDs.

BiometricAttendance

Stores attendance records from biometric devices.

BiometricCommand

Manages commands sent to devices.

Events

The package dispatches events for key operations:

  • Device online/offline status changes
  • Attendance records created
  • Command execution results

Timezone Support

The package properly handles timezone conversions between device time and application time, ensuring accurate attendance logging across different timezones.

Testing

Run the package tests:

vendor/bin/phpunit

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.

Support

For support, please contact Ahid Technologies or create an issue in the repository.

Authors

ahidtechnologies/zkteco-biometric 适用场景与选型建议

ahidtechnologies/zkteco-biometric 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「device」 「attendance」 「Fingerprint」 「biometric」 「zkteco」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 ahidtechnologies/zkteco-biometric 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ahidtechnologies/zkteco-biometric 我们能提供哪些服务?
定制开发 / 二次开发

基于 ahidtechnologies/zkteco-biometric 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-17