# sanketbhosale00/evalify-php architecture

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

- Interactive diagram: https://gitdiagram.com/sanketbhosale00/evalify-php
- Repository: https://github.com/sanketbhosale00/evalify-php

## Overview

Evalify is a Laravel employee-performance platform. Its principal workflow moves from workforce and goal setup through cycle-scoped self/manager evaluations, employee review responses and finalisation, then scores, reports and dashboards. The README documents the broad capabilities and thin-controller/trait design; sampled controller and trait excerpts confirm review delegation, while sampled geo code confirms choropleth queries use GeoFeed. Other links below reflect documented workflows, not inspection of unsampled implementations.

Main entry points: [`app/Http/Controllers/Admin/AdminEmployeeController.php`](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminEmployeeController.php) (Employee records), [`app/Traits/Admin/EvaluationTrait.php`](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/EvaluationTrait.php) (Evaluations), [`app/Traits/ScoreTrait.php`](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/ScoreTrait.php) (Performance scores), [`app/Traits/Admin/ReviewTrait.php`](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/ReviewTrait.php) (360° review tracker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access &amp; workforce"]
  node_auth["Authentication"]
  node_employee["Employee records"]
  node_org["Departments &amp; levels<br/>[Department.php]"]
  node_rbac["Access controls"]
end

subgraph group_planning["Goals &amp; cycles"]
  node_goals["Goals &amp; assignments"]
  node_cycles["Performance cycles"]
end

subgraph group_reviews["Evaluations &amp; reviews"]
  node_self["Self assessment"]
  node_evaluation["Evaluations"]
  node_review["360° review tracker<br/>[ReviewTrait.php]"]
  node_reviewapi["Review API"]
end

subgraph group_insights["Insights &amp; maps"]
  node_scores["Performance scores<br/>[ScoreTrait.php]"]
  node_reports["Score exports"]
  node_dashboard["Dashboards"]
  node_calendar["Calendar &amp; meetings"]
  node_geo["Geo analytics"]
  node_geomap["GeoMap feed<br/>[GeoFeed.php]"]
  node_choropleth["District choropleth"]
  node_tilepipeline["Vector tile pipeline<br/>[BuildGeoTiles.php]"]
  node_mapbox["Mapbox uploads<br/>[MapboxUploader.php]"]
end

subgraph group_internal["Application layers"]
  node_evaluationmodel[("Evaluation records<br/>[Evaluation.php]")]
  node_reviewmodel[("Review records")]
  node_users[("User model<br/>[User.php]")]
  node_apibase["API response helpers<br/>[HasApiResponse.php]"]
end

node_people(("HR &amp; employees"))

node_people -->|"sign in"| node_auth
node_people -->|"manage workforce"| node_employee
node_employee -->|"organize workforce"| node_org
node_people -->|"set and assign goals"| node_goals
node_goals -->|"scope assignments"| node_cycles
node_people -->|"submit assessment"| node_self
node_people -->|"assess performance"| node_evaluation
node_people -->|"respond to review"| node_review
node_reviewapi -->|"delegates review actions"| node_review
node_review -->|"reads and updates"| node_reviewmodel
node_evaluation -.->|"records evaluations"| node_evaluationmodel
node_evaluation -->|"produces scores"| node_scores
node_scores -->|"exports results"| node_reports
node_scores -->|"summarizes results"| node_dashboard
node_people -->|"schedule meetings"| node_calendar
node_employee -.->|"uses employee accounts"| node_users
node_rbac -.->|"checks user type"| node_users
node_reviewapi -->|"formats responses"| node_apibase
node_people -->|"explore workforce"| node_geo
node_geo -.->|"serves map feed"| node_geomap
node_choropleth -->|"loads region aggregates"| node_geomap
node_geomap -.->|"supports optional tiles"| node_tilepipeline
node_tilepipeline -.->|"uploads tilesets"| node_mapbox

click node_auth "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Auth/LoginController.php"
click node_employee "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminEmployeeController.php"
click node_org "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/Department.php"
click node_rbac "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Middleware/UserTypeMiddleware.php"
click node_goals "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/GoalAssignmentTrait.php"
click node_cycles "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/PerformanceCycle.php"
click node_self "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/SelfAssessmentTrait.php"
click node_evaluation "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/EvaluationTrait.php"
click node_review "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/ReviewTrait.php"
click node_reviewapi "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Api/ReviewController.php"
click node_scores "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/ScoreTrait.php"
click node_reports "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Exports/EmployeeScoreExport.php"
click node_dashboard "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminDashboardController.php"
click node_calendar "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminCalendarController.php"
click node_geo "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/GeoDashboardTrait.php"
click node_geomap "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Geo/GeoFeed.php"
click node_choropleth "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Geo/Queries/DistrictChoroplethQuery.php"
click node_tilepipeline "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Console/Commands/BuildGeoTiles.php"
click node_mapbox "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Geo/MapboxUploader.php"
click node_evaluationmodel "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/Evaluation.php"
click node_reviewmodel "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/EvaluationReview.php"
click node_users "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/User.php"
click node_apibase "https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/HasApiResponse.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_auth,node_employee,node_org,node_rbac toneBlue
class node_goals,node_cycles toneAmber
class node_self,node_evaluation,node_review,node_reviewapi toneMint
class node_scores,node_reports,node_dashboard,node_calendar,node_geo,node_geomap,node_choropleth,node_tilepipeline,node_mapbox toneRose
class node_evaluationmodel,node_reviewmodel,node_users,node_apibase,node_people toneIndigo
```

## Components

### Access & workforce

- [Authentication](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Auth/LoginController.php): `app/Http/Controllers/Auth/LoginController.php`
- [Employee records](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminEmployeeController.php): `app/Http/Controllers/Admin/AdminEmployeeController.php`
- [Departments & levels](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/Department.php): `app/Models/Department.php`
- [Access controls](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Middleware/UserTypeMiddleware.php): `app/Http/Middleware/UserTypeMiddleware.php`

### Goals & cycles

- [Goals & assignments](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/GoalAssignmentTrait.php): `app/Traits/Admin/GoalAssignmentTrait.php`
- [Performance cycles](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/PerformanceCycle.php): `app/Models/PerformanceCycle.php`

### Evaluations & reviews

- [Self assessment](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/SelfAssessmentTrait.php): `app/Traits/SelfAssessmentTrait.php`
- [Evaluations](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/EvaluationTrait.php): `app/Traits/Admin/EvaluationTrait.php`
- [360° review tracker](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/ReviewTrait.php): `app/Traits/Admin/ReviewTrait.php`
- [Review API](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Api/ReviewController.php): `app/Http/Controllers/Api/ReviewController.php`

### Insights & maps

- [Performance scores](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/ScoreTrait.php): `app/Traits/ScoreTrait.php`
- [Score exports](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Exports/EmployeeScoreExport.php): `app/Exports/EmployeeScoreExport.php`
- [Dashboards](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminDashboardController.php): `app/Http/Controllers/Admin/AdminDashboardController.php`
- [Calendar & meetings](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Http/Controllers/Admin/AdminCalendarController.php): `app/Http/Controllers/Admin/AdminCalendarController.php`
- [Geo analytics](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/Admin/GeoDashboardTrait.php): `app/Traits/Admin/GeoDashboardTrait.php`
- [GeoMap feed](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Geo/GeoFeed.php): `app/Geo/GeoFeed.php`
- [District choropleth](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Geo/Queries/DistrictChoroplethQuery.php): `app/Geo/Queries/DistrictChoroplethQuery.php`
- [Vector tile pipeline](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Console/Commands/BuildGeoTiles.php): `app/Console/Commands/BuildGeoTiles.php`
- [Mapbox uploads](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Geo/MapboxUploader.php): `app/Geo/MapboxUploader.php`

### Application layers

- [Evaluation records](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/Evaluation.php): `app/Models/Evaluation.php`
- [Review records](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/EvaluationReview.php): `app/Models/EvaluationReview.php`
- [User model](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Models/User.php): `app/Models/User.php`
- [API response helpers](https://github.com/sanketbhosale00/evalify-php/blob/main/app/Traits/HasApiResponse.php): `app/Traits/HasApiResponse.php`

### Other components

- **HR & employees**

## Connections

- HR & employees → Authentication: sign in
- HR & employees → Employee records: manage workforce
- Employee records → Departments & levels: organize workforce
- HR & employees → Goals & assignments: set and assign goals
- Goals & assignments → Performance cycles: scope assignments
- HR & employees → Self assessment: submit assessment
- HR & employees → Evaluations: assess performance
- HR & employees → 360° review tracker: respond to review
- Review API → 360° review tracker: delegates review actions (evidence: `app/Http/Controllers/Api/ReviewController.php`)
- 360° review tracker → Review records: reads and updates (evidence: `app/Traits/Admin/ReviewTrait.php`)
- Evaluations → Evaluation records: records evaluations
- Evaluations → Performance scores: produces scores
- Performance scores → Score exports: exports results
- Performance scores → Dashboards: summarizes results
- HR & employees → Calendar & meetings: schedule meetings
- Employee records → User model: uses employee accounts
- Access controls → User model: checks user type
- Review API → API response helpers: formats responses (evidence: `app/Http/Controllers/Api/ReviewController.php`)
- HR & employees → Geo analytics: explore workforce
- Geo analytics → GeoMap feed: serves map feed (evidence: `app/Geo/GeoFeed.php`)
- District choropleth → GeoMap feed: loads region aggregates (evidence: `app/Geo/Queries/DistrictChoroplethQuery.php`)
- GeoMap feed → Vector tile pipeline: supports optional tiles
- Vector tile pipeline → Mapbox uploads: uploads tilesets
