Home / Products / SDKs & Starter Kits / Cams Biometric Integrator (PHP & Python Starter Kits)
SDK

Cams Biometric Integrator (PHP & Python Starter Kits)

Skip the boilerplate. The Cams Biometric Integrator is a downloadable starter backend โ€” in both PHP and Python โ€” that receives real-time punch logs and user updates from Cams devices, applies configurable day- and shift-based attendance policies, and writes to MySQL, MariaDB, PostgreSQL, MSSQL, or MongoDB.

Overview

Ready-to-run PHP and Python reference backends that receive Cams device punches, evaluate attendance policies, and persist to your database of choice.

A flexible reference implementation that bootstraps integration with the Cams Biometric Web API. It ships with a callback server entry point, day- and shift-attendance evaluators, a REST client for server-to-device operations, and a CLI tester for managing users and devices. Attendance rules live in a JSON config, environment settings in a config file and optional .env, and the database layer is pluggable across MySQL/MariaDB, PostgreSQL, MSSQL, and MongoDB. The PHP edition (PHP 7.4+, Composer) and Python edition (Python 3.8+, pip) ship as drop-in projects.

SDKHTTP callback serverREST clientCLIPHPPython
attendance-rules.json + run the callback server
# PHP edition
composer install && php callback-server.php
# Python edition
pip install -r requirements.txt && python callback_server.py
# shift policy (JSON, no code)
{ "shift":"09:00-18:00", "grace_min":10, "db":"postgres" }

Capabilities

What it does

Drop-In Callback Server

Deploy the callback server and start receiving punches immediately.

Configurable Attendance Policies

Define day and shift rules in JSON without touching code; falls back to defaults if absent.

Any Database

One codebase targets MySQL, MariaDB, PostgreSQL, MSSQL, or MongoDB via a pluggable driver layer.

CLI Tester

Manage and test users and devices interactively from the terminal.

Features

Everything included

  • Real-time punch and user data reception via a callback server entry point
  • Configurable day-based and shift-based attendance policy evaluation in JSON
  • Pluggable database backends: MySQL, MariaDB, PostgreSQL, MSSQL, MongoDB
  • Built-in REST client for server-to-device user and device operations
  • Interactive CLI tester for manually managing users, devices, and policies
  • Database transactions for attendance-data consistency
  • Available in both PHP (PHP 7.4+, Composer) and Python (3.8+, pip)

Build with Cams Biometric Integrator (PHP & Python Starter Kits)

Grab a key, read the docs, and ship. Our team helps with your first integration.

FAQ

Common questions

Which databases does the Cams Biometric Integrator support?

MySQL, MariaDB, PostgreSQL, MSSQL, and MongoDB, selected through a pluggable database driver layer.

Is the Integrator available in more than one language?

Yes. It ships as both a PHP project (PHP 7.4+, Composer) and a Python project (Python 3.8+, pip), with equivalent structure and features.

Related

Explore more of the platform