# nassonct/students-management-system-for-beginners architecture

> Architecture diagram of the GitHub repository nassonct/students-management-system-for-beginners, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nassonct/students-management-system-for-beginners
- Repository: https://github.com/nassonct/students-management-system-for-beginners

## Overview

This is a PHP/MySQL web application for college administrators to manage student records and related academic operations. The main workflow is an administrator signing in, finding or maintaining student records, then recording attendance or managing course modules and student results; the system calculates GPA from grades and credits. Separate capabilities include user administration, email notifications, and PDF generation. Shared configuration establishes the database connection, while the header provides authenticated navigation. Several feature files are not excerpted, so their internal calls and data operations are not asserted.

Main entry points: [`student-management-system/includes/config.php`](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/includes/config.php) (Database config), [`student-management-system/includes/header.php`](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/includes/header.php) (Authenticated navigation), [`student-management-system/database.sql`](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/database.sql) (MySQL database), [`student-management-system/gpa_calculator.php`](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/gpa_calculator.php) (Results and GPA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and shared UI"]
  node_login["Sign in<br/>[login.php]"]
  node_shared_config["Database config<br/>[config.php]"]
  node_navigation["Authenticated navigation<br/>[header.php]"]
  node_dashboard["Dashboard<br/>[dashboard.php]"]
end

subgraph group_students["Student records"]
  node_students["Student records<br/>[view_students.php]"]
  node_student_create["Add student<br/>[add_student.php]"]
  node_student_edit["Edit student<br/>[edit_student.php]"]
  node_student_delete["Delete student<br/>[delete_student.php]"]
  node_student_search["Search students"]
end

subgraph group_academics["Academic operations"]
  node_courses["Course management<br/>[manage_courses.php]"]
  node_course_edit["Course editing<br/>[edit_course.php]"]
  node_modules["Course modules<br/>[manage_modules.php]"]
  node_module_create["Add module<br/>[add_module.php]"]
  node_module_edit["Edit module<br/>[edit_module.php]"]
  node_results_gpa["Results and GPA<br/>[gpa_calculator.php]"]
  node_result_edit["Edit result<br/>[edit_result.php]"]
  node_attendance["Attendance<br/>[attendance.php]"]
end

subgraph group_admin["Administration and communication"]
  node_users["User administration<br/>[manage_users.php]"]
  node_user_create["Add user<br/>[add_user.php]"]
  node_user_edit["Edit user<br/>[edit_user.php]"]
  node_email["Email notifications<br/>[send_email.php]"]
  node_pdf["PDF generation<br/>[generate_pdf.php]"]
end

node_admin_actor(("College administrator"))
node_mail_service{{"Mail service"}}
node_database[("MySQL database<br/>[database.sql]")]

node_admin_actor -->|"signs in"| node_login
node_admin_actor -.->|"uses"| node_dashboard
node_login -->|"connects via"| node_shared_config
node_dashboard -->|"uses"| node_shared_config
node_students -->|"uses"| node_shared_config
node_student_create -->|"uses"| node_shared_config
node_student_edit -->|"uses"| node_shared_config
node_student_search -->|"queries students"| node_database
node_student_search -->|"links to edit"| node_student_edit
node_student_delete -->|"uses"| node_shared_config
node_courses -->|"uses"| node_shared_config
node_modules -->|"uses"| node_shared_config
node_modules -->|"links to add"| node_module_create
node_results_gpa -->|"uses"| node_shared_config
node_results_gpa -.->|"reads and writes grades"| node_database
node_result_edit -->|"uses"| node_shared_config
node_result_edit -->|"reads and updates results"| node_database
node_attendance -->|"uses"| node_shared_config
node_attendance -->|"reads and records attendance"| node_database
node_users -->|"uses"| node_shared_config
node_user_create -->|"uses"| node_shared_config
node_user_edit -->|"uses"| node_shared_config
node_email -->|"uses"| node_shared_config
node_email -->|"sends messages"| node_mail_service
node_pdf -->|"uses"| node_shared_config
node_navigation -->|"links to"| node_dashboard
node_navigation -->|"links to"| node_students
node_navigation -->|"links to"| node_courses
node_navigation -->|"links to"| node_results_gpa
node_navigation -->|"links to"| node_attendance
node_navigation -->|"links to"| node_email
node_navigation -->|"links to"| node_users

click node_login "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/login.php"
click node_shared_config "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/includes/config.php"
click node_navigation "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/includes/header.php"
click node_dashboard "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/dashboard.php"
click node_students "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/view_students.php"
click node_student_create "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/add_student.php"
click node_student_edit "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_student.php"
click node_student_delete "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/delete_student.php"
click node_student_search "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/search_students.php"
click node_courses "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/manage_courses.php"
click node_course_edit "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_course.php"
click node_modules "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/manage_modules.php"
click node_module_create "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/add_module.php"
click node_module_edit "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_module.php"
click node_results_gpa "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/gpa_calculator.php"
click node_result_edit "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_result.php"
click node_attendance "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/attendance.php"
click node_users "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/manage_users.php"
click node_user_create "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/add_user.php"
click node_user_edit "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_user.php"
click node_email "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/send_email.php"
click node_pdf "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/generate_pdf.php"
click node_database "https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/database.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_shared_config,node_navigation,node_dashboard toneBlue
class node_students,node_student_create,node_student_edit,node_student_delete,node_student_search,node_database toneAmber
class node_courses,node_course_edit,node_modules,node_module_create,node_module_edit,node_results_gpa,node_result_edit,node_attendance toneMint
class node_users,node_user_create,node_user_edit,node_email,node_pdf toneRose
class node_admin_actor,node_mail_service toneIndigo
```

## Components

### Access and shared UI

- [Sign in](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/login.php): `student-management-system/login.php`
- [Database config](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/includes/config.php): `student-management-system/includes/config.php`
- [Authenticated navigation](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/includes/header.php): `student-management-system/includes/header.php`
- [Dashboard](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/dashboard.php): `student-management-system/dashboard.php`

### Student records

- [Student records](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/view_students.php): `student-management-system/view_students.php`
- [Add student](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/add_student.php): `student-management-system/add_student.php`
- [Edit student](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_student.php): `student-management-system/edit_student.php`
- [Delete student](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/delete_student.php): `student-management-system/delete_student.php`
- [Search students](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/search_students.php): `student-management-system/search_students.php`

### Academic operations

- [Course management](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/manage_courses.php): `student-management-system/manage_courses.php`
- [Course editing](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_course.php): `student-management-system/edit_course.php`
- [Course modules](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/manage_modules.php): `student-management-system/manage_modules.php`
- [Add module](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/add_module.php): `student-management-system/add_module.php`
- [Edit module](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_module.php): `student-management-system/edit_module.php`
- [Results and GPA](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/gpa_calculator.php): `student-management-system/gpa_calculator.php`
- [Edit result](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_result.php): `student-management-system/edit_result.php`
- [Attendance](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/attendance.php): `student-management-system/attendance.php`

### Administration and communication

- [User administration](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/manage_users.php): `student-management-system/manage_users.php`
- [Add user](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/add_user.php): `student-management-system/add_user.php`
- [Edit user](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/edit_user.php): `student-management-system/edit_user.php`
- [Email notifications](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/send_email.php): `student-management-system/send_email.php`
- [PDF generation](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/generate_pdf.php): `student-management-system/generate_pdf.php`

### Other components

- **College administrator**
- **Mail service**
- [MySQL database](https://github.com/nassonct/students-management-system-for-beginners/blob/main/student-management-system/database.sql): `student-management-system/database.sql`

## Connections

- College administrator → Sign in: signs in
- College administrator → Dashboard: uses
- Sign in → Database config: connects via (evidence: `student-management-system/login.php`)
- Dashboard → Database config: uses (evidence: `student-management-system/dashboard.php`)
- Student records → Database config: uses (evidence: `student-management-system/view_students.php`)
- Add student → Database config: uses (evidence: `student-management-system/add_student.php`)
- Edit student → Database config: uses (evidence: `student-management-system/edit_student.php`)
- Search students → MySQL database: queries students (evidence: `student-management-system/search_students.php`)
- Search students → Edit student: links to edit (evidence: `student-management-system/search_students.php`)
- Delete student → Database config: uses (evidence: `student-management-system/delete_student.php`)
- Course management → Database config: uses (evidence: `student-management-system/manage_courses.php`)
- Course modules → Database config: uses (evidence: `student-management-system/manage_modules.php`)
- Course modules → Add module: links to add (evidence: `student-management-system/manage_modules.php`)
- Results and GPA → Database config: uses (evidence: `student-management-system/gpa_calculator.php`)
- Results and GPA → MySQL database: reads and writes grades
- Edit result → Database config: uses (evidence: `student-management-system/edit_result.php`)
- Edit result → MySQL database: reads and updates results (evidence: `student-management-system/edit_result.php`)
- Attendance → Database config: uses (evidence: `student-management-system/attendance.php`)
- Attendance → MySQL database: reads and records attendance (evidence: `student-management-system/attendance.php`)
- User administration → Database config: uses (evidence: `student-management-system/manage_users.php`)
- Add user → Database config: uses (evidence: `student-management-system/add_user.php`)
- Edit user → Database config: uses (evidence: `student-management-system/edit_user.php`)
- Email notifications → Database config: uses (evidence: `student-management-system/send_email.php`)
- Email notifications → Mail service: sends messages (evidence: `student-management-system/send_email.php`)
- PDF generation → Database config: uses (evidence: `student-management-system/generate_pdf.php`)
- Authenticated navigation → Dashboard: links to (evidence: `student-management-system/includes/header.php`)
- Authenticated navigation → Student records: links to (evidence: `student-management-system/includes/header.php`)
- Authenticated navigation → Course management: links to (evidence: `student-management-system/includes/header.php`)
- Authenticated navigation → Results and GPA: links to (evidence: `student-management-system/includes/header.php`)
- Authenticated navigation → Attendance: links to (evidence: `student-management-system/includes/header.php`)
- Authenticated navigation → Email notifications: links to (evidence: `student-management-system/includes/header.php`)
- Authenticated navigation → User administration: links to (evidence: `student-management-system/includes/header.php`)
