A complete and fully modular Student Management Dashboard built with PHP, MySQL, Bootstrap 5, JavaScript, and AJAX, designed for managing school data with modern UI, advanced reporting tools, automated backups, and multi-language support.
- Password encrypted in database
- PHP sessions
- Auto-redirect protection
- Logout confirmation with SweetAlert2
Includes:
- Total students
- Total teachers
- Total classes
- Fees collected
- Latest registration
- Latest payment
- Active students
- Student gender chart
- Fee collection chart
- Real-time statistics using Chart.js
Each module has:
- UI file (PHP)
- API file (PHP backend)
- JS controller (AJAX logic)
- Validation
- Export (PDF/CSV)
- Client-side search
Modules included:
- Students
- Teachers
- Classes
- Subjects
- Fees
- Districts
- Provinces -Qualifications
- Genders
- Create SQL backup (auto timestamped)
- Download backup file
- Restore backup from uploaded SQL
- Backup folder auto-organized
- Theme preference saved in localStorage
- Smooth UI switch
Languages included:
- English
- Pashto
Dynamic translation using JSON + JavaScript.
- PDF export using jsPDF + html2canvas
- CSV export for every table
Instant search for all modules with clean highlighting.
| Layer | Technology |
|---|---|
| Frontend | HTML5, CSS3, Bootstrap 5 |
| Scripting | JavaScript (Vanilla + AJAX) |
| Backend | PHP (Modular API architecture) |
| Database | MySQL |
| Charts | Chart.js |
| Alerts | SweetAlert2 |
| Exports | jsPDF, html2canvas, CSV |
| Icons | FontAwesome |
| Multi-language | JSON-based system |
dashboard/
βββ Admin/
βββ api/
βββ assets/
βββ backups/
βββ common/
βββ config/
βββ css/
βββ js/
βββ languages/
βββ schema/
βββ util/
βββ validation/
βββ webfonts/
βββ index.php
βββ ...
Each directory contains dedicated and modular components for scalability and easy maintenance.
-
Import the schema located at:
schema/school.sql -
Update database credentials in:
config/db.php -
Default username and password
username : admin@gmail.com password : admin123
After that, login with your created admin credentials.
- PHP 7+
- MySQL 5.7+
- Apache / Nginx
- mod_rewrite enabled
- Write permissions for
/backups/
git clone https://github.com/imranmalakzai/student-management-system
cd student-management-system
- Import database
- Configure
/config/db.php - Deploy on local or live server (XAMPP / WAMP / cPanel / VPS)
(You can add screenshots here)

GET api/student.php?action=getAll
POST api/teacher.php?action=create
POST api/class.php?action=delete&id=5
Every module follows consistent API patterns.
- Converts table rows to downloadable CSV
- Works offline
- Lightweight and fast
Powered by:
jsPDFhtml2canvas
One-click PDF download for reports.
Backups stored automatically in:
backups/
Each file contains:
backup_YYYY-MM-DD_hh-mm-ss.sql
You can also restore backups inside the app.
languages/
βββ english.json
βββ pashto.json
Language switching handled by:
js/language.js
- Attendance module
- Student portal
- Role-based user system
- Exam & results module
- Email/SMS notifications
- Complete REST API version
Developer: Imran Malakzai Country: Afghanistan Profession: MERN Stack Developer & IT Specialist Languages: Pashto, English Skills: React, Node.js, PHP, MySQL, TailwindCSS, Docker, Git
This project can include any license you prefer (MIT recommended).
