metcore / finger-solution
Communication to device finger solution
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:extention
This package is auto-updated.
Last update: 2025-04-27 12:41:06 UTC
README
SDK Fingerprint Solution
Description
This is a calss for handle communiaction with device finger solution, Uses this class you can manupulation data on your device whitout iClock
And more documentation about data communcation with finger solution, you can see here https://docplayer.net/187512891-Soap-development-manual.html
Getting Started
Installing
To install, either run
composer require metcore/finger-solution "@dev"
Using Communication
Initiated class
$finger = new metcore\FingerSolution\FingerSolution([ 'ipaddress'=> "***.***.*.***" ]);
Get All User
$data = $finger->getUserInfo();
Get Single User
$data = $finger->getUserInfo(['pin'=>8]);
Add a User
// // privilege : 0 user , 14 SuperAdmin $data = $finger->setUserInfo([ 'name' => "User", 'pin'=> "8", 'privilege'=>0, 'password'=>12345 ]);
Delete A user
$data = $finger->deleteUser(['pin'=>6]);
Get List finger biometric
$dataTemplete = $finger->getUserTemplate(['pin'=>8, 'fingerId'=>6]);
Set Finger biometric to a user
$setFinger = $finger->setUserTemplate([ 'templete' => $dataTemplete['Template'], 'fingerId' => $dataTemplete['FingerID'], 'pin' => 9, ]);
Delete Finger biometric
$data = $finger->deleteTemplate(['pin'=>6]);
Delete / Clear all data user & template
$data = $finger->clearUserTemplate();
Delete / Clear all template
$data = $finger->clearTemplate();
Delete / Clear all attende
$data = $finger->clearAttende();
Get Date & Time mechine
$data = $finger->getDate();
Set Date & Time mechine
$data = $finger->getDate(['date'=>"2012-12-12", "time"=>"10:10:10"]);
Using WebHook
Before you start, you must have an device ip address, to get the ip address, just point the url on the device to your url and this will return the device id and ip address
$finger = new metcore\FingerSolution\WebHook; $SN = $finger->serialNumber; $ip = $finger->ipAddress; $myfile = fopen("newfile.txt", "w") or die("Unable to open file!"); $txt = $SN`; fwrite($myfile, $txt); $txt = $ip; fwrite($myfile, $txt); fclose($myfile);