承接 raysulkobir/zkteco-laravel 相关项目开发

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

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

raysulkobir/zkteco-laravel

Composer 安装命令:

composer require raysulkobir/zkteco-laravel

包简介

A simple package that integrate zkteco attandance log to laravel projct

README 文档

README

This package easy to use functions to ZKTeco Device activities with laravel framework.

Requires: Laravel >= 10.0

License: MIT

About

Laravel ZKLibrary is a PHP library for ZK Time and Attendance Devices. This library supports reading and writing data to attendance devices (fingerprint, facial recognition, or RFID) over UDP protocol. This library enables direct communication between a web server and an attendance device without the need for additional programs. This library's implementation takes the form

of class. So that you can construct an object and then use its functions.

The web server must be connected to the attendance device via a Local Area Network (LAN). The UDP port utilized for this transmission is 4370. You cannot update this port without first updating the attendance device's software. Just use it.

The data format is binary, string, and numeric. The length of the parameter.

Installation

Begin by installing this package through Composer. Just run following command to terminal-

composer require raysulkobir/zkteco-laravel

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array.

'providers' => [

        // .........................
         ZktecoServiceProvider::class,

    ]

If you want to change Zkteco settings , you need to publish its config file(s). For that you need to set ip address in the terminal-

php artisan vendor:publish

Usages

Create a object of ZKTeco class.
    use Raysulkobir\ZktecoLaravel\Lib\ZKTeco;;

//  1 s't parameter is string ip Device IP Address
//  2 nd  parameter is integer port Default: 4370

    $zk = new ZKTeco('192.168.1.210');

//  or you can use with port
//    $zk = new ZKTeco('192.168.1.210', 8080);

// Create database
// php artisan migrate
- Create table
   // finger_devices
   // employees
   // schedules
   // attendances
   // latetimes
   // leaves
   // overtimes
   // attendance_logs

   - Add schedules first.
   - Add employment

   - Get attendance
   // Current information Every guest receives this and a point request.
   // http://example-app.com/zkteco/get-attendance-log

   - Generate report
   // generate a report using current data
   // example-app.com/zkteco/get-attendanc
Call ZKTeco methods.
  • Connect

    //   this return bool
         $zk->connect()
    
  • Disconnect

     // this is return bool
     $zk->disconnect()
    
  • Enable Device

     // this is return bool//mixed
     $zk->enableDevice()
    
  • Disable Device

     // this is return bool//mixed
     $zk->disableDevice()
    
  • Device Version

    // this return bool/mixed

    $zk->version();
    
  • Device Restart

     // this is return bool//mixed
     $zk->restart()
    
  • Device Serial Number

      //    get device serial number
     $zk->serialNumber()
    
  • Device Name

      //    get device name
     $zk->deviceName()
    
  • Device PIN Width

      //    get device pin width
     $zk->pinWidth()
    
  • Device SSR

      //    get device ssr
     $zk->ssr()
    
  • Device Platform

      //    get device platform
     $zk->platform()
    
  • Get Attendance

     //    return array[]
     $zk->getAttendance()
    
  • Clear Attendance

     //   return bool/mixed
     $zk->clearAttendance()
    
  • Clear Admin

     //    remove all admin
     //    return bool|mixed
     $zk->clearAdmin()
    
  • Clear User

     //    remove all users
     //    return bool|mixed
     $zk->clearUser()
    
  • Get User

      //    get User
      //    this return array[]
      $zk->getUser()
    
  • Delete User

      //    parameter integer $uid
      //    return bool|mixed
      $zk->deleteUser()
    
  • Set/Add User

      //    1 s't parameter int $uid Unique ID (max 65535)
      //    2 nd parameter int|string $userid ID in DB (same like $uid, max length = 9, only numbers - depends device setting)
      //    3 rd parameter string $name (max length = 24)
      //    4 th parameter int|string $password (max length = 8, only numbers - depends device setting)
      //    5 th parameter int $role Default Util::LEVEL_USER
      //    return bool|mixed
      $zk->setUser()
    

raysulkobir/zkteco-laravel 适用场景与选型建议

raysulkobir/zkteco-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 280 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-20