How sunilskc/am05zk works
am05zk is a small PHP library for communicating with ZKFinger fingerprint and attendance devices. A client creates the library with a device IP, connects, then requests device information, manages users, or reads and clears attendance before disconnecting. Internally, the class frames SDK commands and exchanges socket data with the scanner; user and attendance methods decode returned records, including attendance timestamps. The README notes that SDK versions may differ and that PHP SOAP, Socket, and cURL extensions are required. The excerpt omits some transport setup and command internals, so the graph shows only documented or visible relationships.
Main entry points: am05zk.php Socket exchange
Components 10
Library API
- am05zk library
am05zk.php - Device information
am05zk.php - Device controls
am05zk.php
Device Protocol
- Command framing
am05zk.php - Socket exchange
am05zk.php
Device Records
- User records
am05zk.php - Attendance records
am05zk.php - Time decoding
am05zk.php
Other components
- PHP client
- ZKFinger scanner
Connections 12
- PHP client → am05zk library: creates and calls
README.md - am05zk library → Command framing: builds commands
am05zk.php - am05zk library → Socket exchange: exchanges data
am05zk.php - Socket exchange → ZKFinger scanner: sends commands
am05zk.php - ZKFinger scanner → Socket exchange: returns replies
am05zk.php - PHP client → Device information: requests details
README.md - PHP client → Device controls: controls device
README.md - PHP client → User records: reads users
README.md - PHP client → Attendance records: reads or clears
README.md - User records → Socket exchange: requests user data
am05zk.php - Attendance records → Socket exchange: requests records
am05zk.php - Attendance records → Time decoding: decodes timestamps
am05zk.php