# ug-internship-2026/intern-joseph-php architecture

> Architecture diagram of the GitHub repository ug-internship-2026/intern-joseph-php, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ug-internship-2026/intern-joseph-php
- Repository: https://github.com/ug-internship-2026/intern-joseph-php

## Overview

This repository is an internship learning portfolio progressing from PHP fundamentals and array/function exercises to web forms, sessions, authentication, registration, and a student-management CRUD mini-project. The principal implemented application workflow is a user submitting student details, validation and persistence, then listing, searching, viewing, editing, or deleting records. The graph represents that project alongside the earlier learning branches. Edges are limited to relationships visible in the supplied excerpts; the day-03 subsystem connections are not sampled, so their internal flows are omitted.

Main entry points: [`day-04/mini-project/config/database.php`](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/config/database.php) (PDO connection), [`day-04/mini-project/public/create-student.php`](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/create-student.php) (Student creation), [`day-04/mini-project/public/index.php`](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/index.php) (Student listing and search), [`day-04/mini-project/public/view-student.php`](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/view-student.php) (Student details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["PHP fundamentals"]
  node_basics["Syntax practice"]
end

subgraph group_data["Arrays and functions"]
  node_arrays["Array practice"]
  node_functions["Function practice"]
  node_results["Results analysis"]
  node_search["Student search<br/>[student-search.php]"]
end

subgraph group_web["Forms and accounts"]
  node_auth["Authentication"]
  node_contact["Contact forms"]
  node_registration["Registration"]
  node_practice["Form and session practice"]
end

subgraph group_students["Student management"]
  node_listing["Student listing and search<br/>[index.php]"]
  node_create["Student creation<br/>[create-student.php]"]
  node_validation["Student validation<br/>[validation.php]"]
  node_view["Student details<br/>[view-student.php]"]
  node_edit["Student editing<br/>[edit-student.php]"]
  node_delete["Student deletion<br/>[delete-student.php]"]
  node_dbconfig["PDO connection<br/>[database.php]"]
  node_studentdb[("MySQL student records")]
end

node_learner(("Learner"))

node_learner -.->|"practices"| node_basics
node_learner -.->|"practices"| node_arrays
node_learner -.->|"practices"| node_functions
node_learner -.->|"uses"| node_auth
node_learner -.->|"submits"| node_contact
node_learner -.->|"registers"| node_registration
node_learner -.->|"browses"| node_listing
node_create -->|"validates"| node_validation
node_create -->|"loads connection"| node_dbconfig
node_listing -->|"loads connection"| node_dbconfig
node_view -->|"loads connection"| node_dbconfig
node_edit -->|"loads connection"| node_dbconfig
node_delete -->|"loads connection"| node_dbconfig
node_create -->|"inserts record"| node_studentdb
node_listing -->|"queries records"| node_studentdb
node_view -->|"reads record"| node_studentdb
node_edit -->|"reads and updates"| node_studentdb
node_delete -->|"deletes record"| node_studentdb

click node_basics "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-01"
click node_arrays "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-02/arrays"
click node_functions "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-02/functions"
click node_results "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-02/exercise/student-results.php"
click node_search "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-02/challenges/student-search.php"
click node_auth "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/authentication"
click node_contact "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/forms"
click node_registration "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/registration"
click node_practice "https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/practice"
click node_listing "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/index.php"
click node_create "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/create-student.php"
click node_validation "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/src/validation.php"
click node_view "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/view-student.php"
click node_edit "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/edit-student.php"
click node_delete "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/delete-student.php"
click node_dbconfig "https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/config/database.php"

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_basics toneBlue
class node_arrays,node_functions,node_results,node_search toneAmber
class node_auth,node_contact,node_registration,node_practice toneMint
class node_listing,node_create,node_validation,node_view,node_edit,node_delete,node_dbconfig,node_studentdb toneRose
class node_learner toneIndigo
```

## Components

### PHP fundamentals

- [Syntax practice](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-01): `day-01`

### Arrays and functions

- [Array practice](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-02/arrays): `day-02/arrays`
- [Function practice](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-02/functions): `day-02/functions`
- [Results analysis](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-02/exercise/student-results.php): `day-02/exercise/student-results.php`
- [Student search](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-02/challenges/student-search.php): `day-02/challenges/student-search.php`

### Forms and accounts

- [Authentication](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/authentication): `day-03/authentication`
- [Contact forms](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/forms): `day-03/forms`
- [Registration](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/registration): `day-03/registration`
- [Form and session practice](https://github.com/ug-internship-2026/intern-joseph-php/tree/main/day-03/practice): `day-03/practice`

### Student management

- [Student listing and search](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/index.php): `day-04/mini-project/public/index.php`
- [Student creation](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/create-student.php): `day-04/mini-project/public/create-student.php`
- [Student validation](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/src/validation.php): `day-04/mini-project/src/validation.php`
- [Student details](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/view-student.php): `day-04/mini-project/public/view-student.php`
- [Student editing](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/edit-student.php): `day-04/mini-project/public/edit-student.php`
- [Student deletion](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/public/delete-student.php): `day-04/mini-project/public/delete-student.php`
- [PDO connection](https://github.com/ug-internship-2026/intern-joseph-php/blob/main/day-04/mini-project/config/database.php): `day-04/mini-project/config/database.php`
- **MySQL student records**

### Other components

- **Learner**

## Connections

- Learner → Syntax practice: practices
- Learner → Array practice: practices
- Learner → Function practice: practices
- Learner → Authentication: uses
- Learner → Contact forms: submits
- Learner → Registration: registers
- Learner → Student listing and search: browses
- Student creation → Student validation: validates (evidence: `day-04/mini-project/public/create-student.php`)
- Student creation → PDO connection: loads connection (evidence: `day-04/mini-project/public/create-student.php`)
- Student listing and search → PDO connection: loads connection (evidence: `day-04/mini-project/public/index.php`)
- Student details → PDO connection: loads connection (evidence: `day-04/mini-project/public/view-student.php`)
- Student editing → PDO connection: loads connection (evidence: `day-04/mini-project/public/edit-student.php`)
- Student deletion → PDO connection: loads connection (evidence: `day-04/mini-project/public/delete-student.php`)
- Student creation → MySQL student records: inserts record (evidence: `day-04/mini-project/public/create-student.php`)
- Student listing and search → MySQL student records: queries records (evidence: `day-04/mini-project/public/index.php`)
- Student details → MySQL student records: reads record (evidence: `day-04/mini-project/public/view-student.php`)
- Student editing → MySQL student records: reads and updates (evidence: `day-04/mini-project/public/edit-student.php`)
- Student deletion → MySQL student records: deletes record (evidence: `day-04/mini-project/public/delete-student.php`)
