# furkeen/crm-freelancer architecture

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

- Interactive diagram: https://gitdiagram.com/furkeen/crm-freelancer
- Repository: https://github.com/furkeen/crm-freelancer

## Overview

CRM-Freelancer is a CodeIgniter-based freelancer CRM for managing customers, projects, and transactions. A user’s request enters through the PHP front controller and is routed to application controllers; the sampled customer and project controllers retrieve model data and render views. The dashboard includes calendar event forms that submit to the Post controller. README-documented transaction and settings areas are retained, but their detailed runtime connections are uncertain because their source was not sampled. The graph focuses on application behavior, not the bundled framework’s full feature set.

Main entry points: [`system/core/Router.php`](https://github.com/furkeen/crm-freelancer/blob/master/system/core/Router.php) (URI routing), [`application/controllers/Project.php`](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Project.php) (Project actions), [`application/controllers/Customer.php`](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Customer.php) (Customer actions), [`application/config/database.php`](https://github.com/furkeen/crm-freelancer/blob/master/application/config/database.php) (Configured database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request handling"]
  node_front["PHP entry<br/>[index.php]"]
end

subgraph group_crm["CRM workflows"]
  node_customer["Customer actions<br/>[Customer.php]"]
  node_customer_model["Customer records<br/>[Customer_model.php]"]
  node_project["Project actions<br/>[Project.php]"]
  node_project_model["Project records<br/>[Project_model.php]"]
  node_transactions["Transaction actions<br/>[Transaction.php]"]
  node_transaction_model["Transaction records"]
  node_settings["Settings actions<br/>[Settings.php]"]
  node_settings_model["Settings data<br/>[Settings_model.php]"]
  node_dashboard["Dashboard actions<br/>[Main.php]"]
  node_events["Calendar events<br/>[Post.php]"]
end

subgraph group_ui["User interface"]
  node_customer_views["Customer screens"]
  node_project_views["Project screens<br/>[project_view.php]"]
  node_dashboard_view["Dashboard calendar<br/>[main.php]"]
end

subgraph group_framework["CodeIgniter runtime"]
  node_bootstrap["Runtime bootstrap<br/>[CodeIgniter.php]"]
  node_router["URI routing<br/>[Router.php]"]
  node_database[("Configured database<br/>[database.php]")]
end

node_user(("CRM user"))

node_user -->|"requests"| node_front
node_front -->|"starts"| node_bootstrap
node_bootstrap -->|"initializes"| node_router
node_router -.->|"dispatches"| node_customer
node_router -.->|"dispatches"| node_project
node_router -.->|"dispatches"| node_transactions
node_router -.->|"dispatches"| node_dashboard
node_customer -->|"loads data"| node_customer_model
node_customer -->|"renders"| node_customer_views
node_project -->|"loads data"| node_project_model
node_project -->|"renders"| node_project_views
node_project -->|"gets currency"| node_settings_model
node_transactions -.->|"loads data"| node_transaction_model
node_settings -.->|"loads data"| node_settings_model
node_dashboard -.->|"renders"| node_dashboard_view
node_dashboard_view -->|"submits events"| node_events
node_customer_model -.->|"reads and writes"| node_database
node_project_model -.->|"reads and writes"| node_database
node_transaction_model -.->|"reads and writes"| node_database

click node_front "https://github.com/furkeen/crm-freelancer/blob/master/index.php"
click node_bootstrap "https://github.com/furkeen/crm-freelancer/blob/master/system/core/CodeIgniter.php"
click node_router "https://github.com/furkeen/crm-freelancer/blob/master/system/core/Router.php"
click node_customer "https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Customer.php"
click node_customer_model "https://github.com/furkeen/crm-freelancer/blob/master/application/models/Customer_model.php"
click node_customer_views "https://github.com/furkeen/crm-freelancer/blob/master/application/views/customer_listing.php"
click node_project "https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Project.php"
click node_project_model "https://github.com/furkeen/crm-freelancer/blob/master/application/models/Project_model.php"
click node_project_views "https://github.com/furkeen/crm-freelancer/blob/master/application/views/project_view.php"
click node_transactions "https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Transaction.php"
click node_transaction_model "https://github.com/furkeen/crm-freelancer/blob/master/application/models/Transaction_model.php"
click node_settings "https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Settings.php"
click node_settings_model "https://github.com/furkeen/crm-freelancer/blob/master/application/models/Settings_model.php"
click node_dashboard "https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Main.php"
click node_dashboard_view "https://github.com/furkeen/crm-freelancer/blob/master/application/views/main.php"
click node_events "https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Post.php"
click node_database "https://github.com/furkeen/crm-freelancer/blob/master/application/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_front,node_user toneBlue
class node_customer,node_customer_model,node_project,node_project_model,node_transactions,node_transaction_model,node_settings,node_settings_model,node_dashboard,node_events toneAmber
class node_customer_views,node_project_views,node_dashboard_view toneMint
class node_bootstrap,node_router,node_database toneRose
```

## Components

### Request handling

- [PHP entry](https://github.com/furkeen/crm-freelancer/blob/master/index.php): `index.php`

### CRM workflows

- [Customer actions](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Customer.php): `application/controllers/Customer.php`
- [Customer records](https://github.com/furkeen/crm-freelancer/blob/master/application/models/Customer_model.php): `application/models/Customer_model.php`
- [Project actions](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Project.php): `application/controllers/Project.php`
- [Project records](https://github.com/furkeen/crm-freelancer/blob/master/application/models/Project_model.php): `application/models/Project_model.php`
- [Transaction actions](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Transaction.php): `application/controllers/Transaction.php`
- [Transaction records](https://github.com/furkeen/crm-freelancer/blob/master/application/models/Transaction_model.php): `application/models/Transaction_model.php`
- [Settings actions](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Settings.php): `application/controllers/Settings.php`
- [Settings data](https://github.com/furkeen/crm-freelancer/blob/master/application/models/Settings_model.php): `application/models/Settings_model.php`
- [Dashboard actions](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Main.php): `application/controllers/Main.php`
- [Calendar events](https://github.com/furkeen/crm-freelancer/blob/master/application/controllers/Post.php): `application/controllers/Post.php`

### User interface

- [Customer screens](https://github.com/furkeen/crm-freelancer/blob/master/application/views/customer_listing.php): `application/views/customer_listing.php`
- [Project screens](https://github.com/furkeen/crm-freelancer/blob/master/application/views/project_view.php): `application/views/project_view.php`
- [Dashboard calendar](https://github.com/furkeen/crm-freelancer/blob/master/application/views/main.php): `application/views/main.php`

### CodeIgniter runtime

- [Runtime bootstrap](https://github.com/furkeen/crm-freelancer/blob/master/system/core/CodeIgniter.php): `system/core/CodeIgniter.php`
- [URI routing](https://github.com/furkeen/crm-freelancer/blob/master/system/core/Router.php): `system/core/Router.php`
- [Configured database](https://github.com/furkeen/crm-freelancer/blob/master/application/config/database.php): `application/config/database.php`

### Other components

- **CRM user**

## Connections

- CRM user → PHP entry: requests
- PHP entry → Runtime bootstrap: starts (evidence: `index.php`)
- Runtime bootstrap → URI routing: initializes (evidence: `system/core/CodeIgniter.php`)
- URI routing → Customer actions: dispatches
- URI routing → Project actions: dispatches
- URI routing → Transaction actions: dispatches
- URI routing → Dashboard actions: dispatches
- Customer actions → Customer records: loads data (evidence: `application/controllers/Customer.php`)
- Customer actions → Customer screens: renders (evidence: `application/controllers/Customer.php`)
- Project actions → Project records: loads data (evidence: `application/controllers/Project.php`)
- Project actions → Project screens: renders (evidence: `application/controllers/Project.php`)
- Project actions → Settings data: gets currency (evidence: `application/controllers/Project.php`)
- Transaction actions → Transaction records: loads data
- Settings actions → Settings data: loads data
- Dashboard actions → Dashboard calendar: renders
- Dashboard calendar → Calendar events: submits events (evidence: `application/views/main.php`)
- Customer records → Configured database: reads and writes
- Project records → Configured database: reads and writes
- Transaction records → Configured database: reads and writes
