Download the PHP package olorunda/laravel-zkteco-push without Composer
On this page you can find all versions of the php package olorunda/laravel-zkteco-push. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download olorunda/laravel-zkteco-push
More information about olorunda/laravel-zkteco-push
Files in olorunda/laravel-zkteco-push
Package laravel-zkteco-push
Short Description ZKTeco ADMS Push SDK Middleware & External REST API Interpreter Bridge for Laravel
License MIT
Informations about the package laravel-zkteco-push
ZKTeco ADMS Push SDK Laravel Package & REST API Interpreter Bridge
A clean, native Laravel Package (olorunda/laravel-zkteco-push) that acts as an interpreter bridge between ZKTeco Biometric Devices (Fingerprint, Face, Palm, RFID Access Control) and any External Application / API (HR, ERP, Payroll System).
๐ Key Package Features
- ๐ Native Laravel Auto-Discovery: Automatically registers Service Provider, Facades, Routes, and Database Migrations.
- โก Fluent
ZkTecoPushFacade: Chain device actions using expressive array parameters (deleteUser,addUser,queueCommand,reboot,syncTime,unlockDoor). - ๐ Delayed Action Scheduler: Queue user deletions or command dispatches with time delays (
delay_minutes,delay_seconds, ordelaySeconds: 120). - ๐ง Native Laravel Events: Automatically dispatches
AttendancePushed,DeviceHeartbeat, andCommandExecutedevents for queued listeners/jobs. - ๐๏ธ Configurable Table Prefix: Custom prefix setting (
table_prefix => 'zk_') for all database tables. - ๐ Built-In Admin UI Dashboard: Glassmorphism web dashboard at
/zkteco/adminto monitor connected devices and logs.
๐ฆ Installation
Step 1: Install Package via Composer
Or for local development in your main Laravel composer.json:
Step 2: Publish Configuration & Migrations
โ๏ธ Environment Configuration (.env)
๐ Protecting the Admin UI with Auth Middleware
You can secure the /zkteco/admin dashboard behind Laravel's standard auth middleware or custom authorization guards by updating config/zkteco-push.php:
Or via environment variable:
โก Using the ZkTecoPush Facade
Array Payload Syntax:
Fluent Device Chaining Syntax:
๐ง Detailed Examples of Available Laravel Events
The package automatically fires native Laravel events whenever connected biometric machines push data or execute commands. You can attach queued listeners or event callbacks in your AppServiceProvider or EventServiceProvider.
1. AttendancePushed Event
Fired in real time whenever an employee scans a fingerprint, face, palm, RFID card, or enters a password on any ZKTeco terminal.
Listener Callback Example:
Dedicated Queued Listener Class Example (app/Listeners/ProcessZkTecoPunch.php):
2. DeviceHeartbeat Event
Fired whenever a ZKTeco biometric device connects to the server, completes an initial ADMS handshake, or sends a periodic ping.
Listener Callback Example:
3. CommandExecuted Event
Fired when a hardware machine finishes executing a queued command (such as user creation, user deletion, delayed deletion, device reboot, or log clearance).
Listener Callback Example:
๐ญ Production-Ready Integration Guide
Below is a complete, production-grade implementation pattern for real-world Laravel applications. Reference file: ProductionLaravelExample.php.
1. Queued Event Listener (app/Listeners/SyncBiometricAttendanceListener.php)
2. Employee Management Controller (app/Http/Controllers/BiometricEmployeeManagementController.php)
๐งช Running Tests
Run the PHPUnit test suite using Composer:
Or run PHPUnit directly:
All versions of laravel-zkteco-push with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
illuminate/routing Version ^9.0|^10.0|^11.0|^12.0