coding-libs/zkteco-php
Composer 安装命令:
composer require coding-libs/zkteco-php
包简介
A package for managing ZKTeco device.
README 文档
README
Warning
⚠️ This repository is not recommended for use in production. ⚠️
This repository is currently in development and may contain bugs or incomplete features. Use at your own risk and do not deploy to a production environment.
About zkteco-php
The zkteco-php library provides a robust solution for php/laravel developers to interface with ZK BioMetric Fingerprint Attendance Devices. Its user-friendly API allows seamless extraction of data, such as registered users, logs, and device versions. Developers can also add users, retrieve real-time logs, and clear attendance records. Using a socket connection, the library ensures fast and reliable data exchange. Whether creating an attendance system or a time-and-attendance management application, zkteco-js is the essential tool for integrating biometric devices efficiently.
Installation
composer require coding-libs/zkteco-php
Usage Example
// Uncomment the line below if you are not using a PHP framework and need to manually load Composer dependencies. // require_once "vendor/autoload.php"; use CodingLibs\ZktecoPhp\Libs\ZKTeco; $zktecoLib = new Zkteco('192.168.1.1'); //$zktecoLib = new Zkteco(ip:'192.168.1.1', port:4370, shouldPing:false, timeout:25, password:12345); // Password means CMD Key $zkteco->connect(); $zktecoLib->vendorName(); // "ZKTeco Inc. $zktecoLib->deviceName(); // "F22/ID $zktecoLib->serialNumber(); // "BOCK201261276 $zktecoLib->pinWidth(); // "14 $zktecoLib->faceFunctionOn(); // "0 $zktecoLib->platform(); // "ZLM60_TFT $zktecoLib->fmVersion(); // "10 $zktecoLib->ssr(); // "1 $zktecoLib->version(); // "Ver 6.60 Sep 19 2019 $zktecoLib->workCode(); // "0 $zktecoLib->getFingerprint(1); $zktecoLib->getUsers(); // users $zktecoLib->getAttendances(); // attendances logs $zktecoLib->getTime(); // device time $zktecoLib->clearAdminPriv(); // Removes the admin privileges from the current user. $zktecoLib->clearAllUsers(); // clear all users
We have introduced some unique methods.
$zktecoLib->getAttendances(function ($item){ // condition goes there return $item; }); // attendances logs $zktecoLib->deleteUsers(function($user){ // condition goes there }); // delete users conditionally $zktecoLib->deviceId(); // "0 $zktecoLib->getDeviceData('TCPPort'); // "4370 $zktecoLib->setCustomData('my_company_name', "Coding Labs"); // You can set any custom value as you want $zktecoLib->getCustomData("my_company_name"); // "Coding Labs $zktecoLib->setPushCommKey("iclock_push_commKey"); // It may be useful for iClock authentication. $zktecoLib->getPushCommKey(); // "iclock_push_commKey # and more...
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail codinglibs4u@gmail.com instead of using the issue tracker.
Alternatives
License
The MIT License (MIT). Please see License File for more information.
coding-libs/zkteco-php 适用场景与选型建议
coding-libs/zkteco-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.11k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2024 年 08 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Fingerprint」 「zkteco」 「attendances」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 coding-libs/zkteco-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 coding-libs/zkteco-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 coding-libs/zkteco-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3
PHP library for communication with ZKTeco Attendance Machine
Connect any zkteco fingerprint attendance machine to laravel application with no effort.
PHP wrapper for command-line fingerprint generator - fpcalc
A PHP package for managing ZKTeco biometric devices with TCP and UDP protocol support.
Persistence of Wikibase terms with lookups of those terms and by those terms
统计信息
- 总下载量: 5.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-21
