Download the PHP package eduplus/attendance without Composer
On this page you can find all versions of the php package eduplus/attendance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package attendance
Eduplus Attendance SDK
A PHP SDK for interacting with the Eduplus Attendance API — Centralized Attendance Data Collection System. Built with Guzzle HTTP.
Requirements
- PHP 7.4 or higher
- Guzzle HTTP 6.5+ or 7.0+ (automatically installed via Composer)
Installation
Quick Start
Configuration
Usage
Attendance
Punches
Machines
API Reference
setApiKey(string $apiKey): EduplusAttendance
Set the API key. Returns a new instance for chaining.
setBaseUrl(string $url): void
Override the base URL. Default: https://attendance.eduplus-bd.com
attendance(array $filters = []): array
Get attendance records. Filters: start, end, person_identifier, machine, tags
attendanceForDate(string $date, array $filters = []): array
Get attendance for a date. Extra filters: late_time, absent_time, rules
personAttendance(string $id, array $filters = []): array
Get attendance for a person. Filters: start, end, machine, tags
punches(array $filters = []): array
Get raw punches. Filters: start, end, person_identifier, machine, tags
personPunches(string $id, array $filters = []): array
Get punches for a person. Filters: start, end, machine, tags
machines(): array
Get all machines for the authenticated client.
Response Format
Attendance Record
Punch Record
Machine Record
Filter Reference
| Filter | Type | Used In | Description |
|---|---|---|---|
start |
date (Y-m-d) | attendance, punches | Start date |
end |
date (Y-m-d) | attendance, punches | End date |
person_identifier |
string | attendance, punches | Filter by person |
machine |
string/int | all | Machine identifier or numeric ID |
tags |
string | all | Comma-separated tag names. Returns data from machines that have ALL specified tags |
late_time |
time (HH:MM) | attendanceForDate | Global late threshold |
absent_time |
time (HH:MM) | attendanceForDate | Global absent threshold |
rules |
array | attendanceForDate | Per-person late/absent overrides |
Error Handling
The SDK never throws exceptions. All methods return arrays:
- Success: Returns the data array from the API
- Error/No data: Returns an empty array
[]
License
MIT — see LICENSE file.