anascloud/zkteko

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

Maintainers

Package info

github.com/anascloud/zkteko

pkg:composer/anascloud/zkteko

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-06-14 10:31 UTC

This package is auto-updated.

Last update: 2026-07-14 10:39:47 UTC


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.