# sabbirhosen44/job-portal-project-php-mysql-css architecture

> Architecture diagram of the GitHub repository sabbirhosen44/job-portal-project-php-mysql-css, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sabbirhosen44/job-portal-project-php-mysql-css
- Repository: https://github.com/sabbirhosen44/job-portal-project-php-mysql-css

## Overview

This PHP/MySQL job portal connects job seekers with employers: visitors browse and search jobs or companies, register and sign in, then save or apply to jobs; employers post jobs and manage applications, while administrators manage users and listings. Distinct stages include discovery, job application, employer recruitment, profile/resume management, and administration/reporting. The graph includes the shared MySQL connection as an internal persistence layer. Several dashboard and reporting components are documented by the tree and README but not excerpted, so their links are shown only where documented or left unverified.

Main entry points: [`includes/conn.php`](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/includes/conn.php) (MySQL database), [`includes/session.php`](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/includes/session.php) (Session bootstrap), [`searchCompany.php`](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/searchCompany.php) (Company search), [`index.php`](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/index.php) (Portal home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Job Discovery"]
  node_home["Portal home<br/>[index.php]"]
  node_job_search["Job search<br/>[searchJob.php]"]
  node_job_browse["Job listings<br/>[findJobs.php]"]
  node_company_search["Company search<br/>[searchCompany.php]"]
  node_company_browse["Company listings"]
  node_job_detail["Job details<br/>[jobDetails.php]"]
  node_company_detail["Company details<br/>[companyDetails.php]"]
end

subgraph group_identity["Accounts &amp; Profiles"]
  node_login_ui["Sign-in page<br/>[login.php]"]
  node_registration["Registration handler<br/>[register.php]"]
  node_authentication["Login handler<br/>[login.php]"]
  node_profile["Profile management<br/>[editProfile.php]"]
  node_resume["Resume management<br/>[myresume.php]"]
end

subgraph group_recruitment["Recruitment"]
  node_application["Apply to job<br/>[applyJob.php]"]
  node_saved_jobs["Saved jobs<br/>[saveJob.php]"]
  node_employer_jobs["Job posting<br/>[addJob.php]"]
  node_job_updates["Job updates<br/>[updateJob.php]"]
  node_applications_manage["Application management"]
  node_applications_view["Applications view"]
end

subgraph group_administration["Administration &amp; Reports"]
  node_dashboard["Role dashboards<br/>[dashboard.php]"]
  node_admin_lists["Admin user &amp; listing tools"]
  node_reports["Admin reports"]
end

subgraph group_platform["Shared Runtime"]
  node_session["Session bootstrap<br/>[session.php]"]
  node_database[("MySQL database<br/>[conn.php]")]
end

node_visitor(("Job seeker / employer"))

node_visitor -->|"browses"| node_home
node_home -->|"queries counts"| node_database
node_visitor -->|"browses"| node_job_browse
node_visitor -->|"browses"| node_company_browse
node_job_browse -->|"submits filters"| node_job_search
node_job_search -->|"queries listings"| node_database
node_company_browse -->|"submits filters"| node_company_search
node_company_search -->|"queries companies"| node_database
node_company_search -->|"links to"| node_company_detail
node_visitor -.->|"opens listing"| node_job_detail
node_visitor -.->|"opens profile"| node_company_detail
node_visitor -->|"signs in"| node_login_ui
node_login_ui -.->|"submits credentials"| node_authentication
node_visitor -->|"registers"| node_registration
node_authentication -->|"starts session"| node_session
node_registration -->|"uses session"| node_session
node_session -->|"connects"| node_database
node_visitor -->|"applies"| node_application
node_application -->|"checks session"| node_session
node_visitor -->|"saves listing"| node_saved_jobs
node_visitor -->|"posts jobs"| node_employer_jobs
node_employer_jobs -->|"checks session"| node_session
node_visitor -->|"manages listings"| node_job_updates
node_job_updates -->|"checks session"| node_session
node_visitor -->|"manages applications"| node_applications_manage
node_applications_manage -->|"queries applications"| node_database
node_visitor -->|"edits profile"| node_profile
node_profile -->|"reads and updates"| node_database
node_visitor -.->|"manages resume"| node_resume
node_visitor -->|"opens dashboard"| node_dashboard
node_dashboard -->|"routes by role"| node_admin_lists
node_visitor -->|"generates reports"| node_reports
node_admin_lists -.->|"manages records"| node_database
node_reports -.->|"reads report data"| node_database

click node_home "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/index.php"
click node_job_search "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/searchJob.php"
click node_job_browse "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/findJobs.php"
click node_company_search "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/searchCompany.php"
click node_company_browse "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/browseCompanies.php"
click node_job_detail "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/jobDetails.php"
click node_company_detail "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/companyDetails.php"
click node_login_ui "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/login.php"
click node_registration "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/register.php"
click node_authentication "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/login.php"
click node_profile "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/editProfile.php"
click node_resume "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/myresume.php"
click node_application "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/applyJob.php"
click node_saved_jobs "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/saveJob.php"
click node_employer_jobs "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/addJob.php"
click node_job_updates "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/updateJob.php"
click node_applications_manage "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/manageApplications.php"
click node_applications_view "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/viewApplications.php"
click node_dashboard "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/dashboard.php"
click node_admin_lists "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/tree/main/dashboard"
click node_reports "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/tree/main/Report%20Generation/Admin"
click node_session "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/includes/session.php"
click node_database "https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/includes/conn.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_home,node_job_search,node_job_browse,node_company_search,node_company_browse,node_job_detail,node_company_detail toneBlue
class node_login_ui,node_registration,node_authentication,node_profile,node_resume toneAmber
class node_application,node_saved_jobs,node_employer_jobs,node_job_updates,node_applications_manage,node_applications_view toneMint
class node_dashboard,node_admin_lists,node_reports toneRose
class node_session,node_database,node_visitor toneIndigo
```

## Components

### Job Discovery

- [Portal home](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/index.php): `index.php`
- [Job search](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/searchJob.php): `searchJob.php`
- [Job listings](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/findJobs.php): `findJobs.php`
- [Company search](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/searchCompany.php): `searchCompany.php`
- [Company listings](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/browseCompanies.php): `browseCompanies.php`
- [Job details](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/jobDetails.php): `jobDetails.php`
- [Company details](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/companyDetails.php): `companyDetails.php`

### Accounts & Profiles

- [Sign-in page](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/login.php): `login.php`
- [Registration handler](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/register.php): `process/register.php`
- [Login handler](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/login.php): `process/login.php`
- [Profile management](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/editProfile.php): `dashboard/editProfile.php`
- [Resume management](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/myresume.php): `dashboard/myresume.php`

### Recruitment

- [Apply to job](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/applyJob.php): `process/applyJob.php`
- [Saved jobs](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/saveJob.php): `process/saveJob.php`
- [Job posting](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/addJob.php): `dashboard/addJob.php`
- [Job updates](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/process/updateJob.php): `process/updateJob.php`
- [Application management](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/manageApplications.php): `dashboard/manageApplications.php`
- [Applications view](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/viewApplications.php): `dashboard/viewApplications.php`

### Administration & Reports

- [Role dashboards](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/dashboard/dashboard.php): `dashboard/dashboard.php`
- [Admin user & listing tools](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/tree/main/dashboard): `dashboard`
- [Admin reports](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/tree/main/Report%20Generation/Admin): `Report Generation/Admin`

### Shared Runtime

- [Session bootstrap](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/includes/session.php): `includes/session.php`
- [MySQL database](https://github.com/sabbirhosen44/job-portal-project-php-mysql-css/blob/main/includes/conn.php): `includes/conn.php`

### Other components

- **Job seeker / employer**

## Connections

- Job seeker / employer → Portal home: browses (evidence: `index.php`)
- Portal home → MySQL database: queries counts (evidence: `index.php`)
- Job seeker / employer → Job listings: browses
- Job seeker / employer → Company listings: browses
- Job listings → Job search: submits filters
- Job search → MySQL database: queries listings (evidence: `searchJob.php`)
- Company listings → Company search: submits filters
- Company search → MySQL database: queries companies (evidence: `searchCompany.php`)
- Company search → Company details: links to (evidence: `searchCompany.php`)
- Job seeker / employer → Job details: opens listing
- Job seeker / employer → Company details: opens profile
- Job seeker / employer → Sign-in page: signs in
- Sign-in page → Login handler: submits credentials
- Job seeker / employer → Registration handler: registers
- Login handler → Session bootstrap: starts session (evidence: `process/login.php`)
- Registration handler → Session bootstrap: uses session (evidence: `process/register.php`)
- Session bootstrap → MySQL database: connects (evidence: `includes/session.php`)
- Job seeker / employer → Apply to job: applies
- Apply to job → Session bootstrap: checks session (evidence: `process/applyJob.php`)
- Job seeker / employer → Saved jobs: saves listing
- Job seeker / employer → Job posting: posts jobs
- Job posting → Session bootstrap: checks session
- Job seeker / employer → Job updates: manages listings
- Job updates → Session bootstrap: checks session (evidence: `process/updateJob.php`)
- Job seeker / employer → Application management: manages applications
- Application management → MySQL database: queries applications (evidence: `dashboard/manageApplications.php`)
- Job seeker / employer → Profile management: edits profile (evidence: `dashboard/editProfile.php`)
- Profile management → MySQL database: reads and updates (evidence: `dashboard/editProfile.php`)
- Job seeker / employer → Resume management: manages resume
- Job seeker / employer → Role dashboards: opens dashboard
- Role dashboards → Admin user & listing tools: routes by role (evidence: `dashboard/dashboardSidebar.php`)
- Job seeker / employer → Admin reports: generates reports
- Admin user & listing tools → MySQL database: manages records (evidence: `dashboard/editProfile.php`)
- Admin reports → MySQL database: reads report data
