Transform Your School Management Today

A comprehensive digital solution for attendance tracking, teacher duty management, and AI-driven student performance analysis.

Why Choose AI TANZANIA?

Empowering schools with data-driven tools to improve student attendance and streamline administration.

Smart Attendance

Record daily attendance effortlessly. System automatically calculates percentages and generates monthly registers.

AI Analytics

Our AI analyzes attendance patterns to identify students at "High Risk" of dropout before it's too late.

Instant SMS

Automatically notify parents via SMS when a student is marked absent or sick, ensuring better communication.

Duty Management

Digital duty rosters and logbooks for teachers. Track events, cleanliness, and security reports digitally.

Source Codes & Local Setup

Download the complete source code and configure the system for your institution.

Attendance System Source Code

Download the full PHP source code for the AITANZANIA Attendance system. Includes database schemas, SMS integration module, and AI analytics scripts.

Download ZIP
×

System Installation Guide

Running on Localhost

  1. Download attendance.zip and extract it into your server directory (e.g., C:/xampp/htdocs/attendance/).
  2. Open your browser and navigate to http://localhost/phpmyadmin.
  3. Create a new database named attendance_db.
  4. Click Import and upload the database.sql file included in the root folder.
  5. Update your database connection credentials in db_connect.php:
<?php $host = 'localhost'; $user = 'root'; $pass = ''; // Default XAMPP has no password $dbname = 'attendance_db'; $conn = new mysqli($host, $user, $pass, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?>

Deploying to Live Server (cPanel)

  1. Login to your cPanel and open File Manager.
  2. Navigate to your domain directory (e.g., public_html/), upload attendance.zip, and click Extract.
  3. Go to MySQL Databases in cPanel. Create a new database and a new database user. Link the user to the database with ALL PRIVILEGES.
  4. Go to phpMyAdmin, select your new database, and import database.sql.
  5. Edit the db_connect.php file via File Manager with your live credentials:
<?php $host = 'localhost'; $user = 'yourcpaneluser_dbuser'; $pass = 'Your_Strong_Password_123'; $dbname = 'yourcpaneluser_attendance_db'; $conn = new mysqli($host, $user, $pass, $dbname); ?>

Configuring Beem SMS Gateway

To enable automatic parent notifications for absences, configure the Beem Africa SMS API.

  1. Register or login at Beem Africa.
  2. Navigate to the API Dashboard to retrieve your API Key and Secret Key.
  3. Open the sms_config.php file in your downloaded source code and paste your keys:
<?php // Paste your Beem SMS API credentials here define('BEEM_API_KEY', 'your_beem_api_key_here'); define('BEEM_SECRET_KEY', 'your_beem_secret_key_here'); define('BEEM_SENDER_ID', 'INFO'); // Or your approved sender ID ?>