# phpixie/project architecture

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

- Interactive diagram: https://gitdiagram.com/phpixie/project
- Repository: https://github.com/phpixie/project

## Overview

This repository is a PHPixie project skeleton: its main runtime entry receives an HTTP request, creates the project framework, and delegates request processing to PHPixie. The project customizes framework construction through a builder, which supplies the bundle and extension registries. The README also documents broader PHPixie capabilities, including reusable bundles, MongoDB support, and security; their implementations are in required framework packages, not in the sampled project source. Edges below are limited to relationships shown by source or documented in the README.

Main entry points: [`src/Project/Framework/Builder.php`](https://github.com/phpixie/project/blob/master/src/Project/Framework/Builder.php) (Framework builder), [`src/Project/Framework.php`](https://github.com/phpixie/project/blob/master/src/Project/Framework.php) (Project framework), [`web/index.php`](https://github.com/phpixie/project/blob/master/web/index.php) (HTTP entry point), [`src/Project/Framework/Bundles.php`](https://github.com/phpixie/project/blob/master/src/Project/Framework/Bundles.php) (Bundle registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["HTTP runtime"]
  node_http_entry["HTTP entry point<br/>[index.php]"]
end

subgraph group_composition["Framework composition"]
  node_project_framework["Project framework<br/>[Framework.php]"]
  node_framework_builder["Framework builder<br/>[Builder.php]"]
end

subgraph group_customization["Project customization"]
  node_bundle_registry["Bundle registry<br/>[Bundles.php]"]
  node_extension_registry["Extension registry<br/>[Extensions.php]"]
end

node_http_client(("HTTP client"))
node_phpixie_framework["PHPixie framework"]

node_http_client -.->|"sends request"| node_http_entry
node_http_entry -->|"creates"| node_project_framework
node_http_entry -->|"dispatches request"| node_project_framework
node_project_framework -->|"builds"| node_framework_builder
node_framework_builder -->|"creates"| node_bundle_registry
node_framework_builder -->|"creates"| node_extension_registry
node_project_framework -->|"extends"| node_phpixie_framework
node_framework_builder -->|"extends"| node_phpixie_framework
node_bundle_registry -->|"extends bundle registry"| node_phpixie_framework
node_extension_registry -->|"extends extension registry"| node_phpixie_framework

click node_http_entry "https://github.com/phpixie/project/blob/master/web/index.php"
click node_project_framework "https://github.com/phpixie/project/blob/master/src/Project/Framework.php"
click node_framework_builder "https://github.com/phpixie/project/blob/master/src/Project/Framework/Builder.php"
click node_bundle_registry "https://github.com/phpixie/project/blob/master/src/Project/Framework/Bundles.php"
click node_extension_registry "https://github.com/phpixie/project/blob/master/src/Project/Framework/Extensions.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_http_entry,node_http_client toneBlue
class node_project_framework,node_framework_builder toneAmber
class node_bundle_registry,node_extension_registry toneMint
class node_phpixie_framework toneIndigo
```

## Components

### HTTP runtime

- [HTTP entry point](https://github.com/phpixie/project/blob/master/web/index.php): `web/index.php`

### Framework composition

- [Project framework](https://github.com/phpixie/project/blob/master/src/Project/Framework.php): `src/Project/Framework.php`
- [Framework builder](https://github.com/phpixie/project/blob/master/src/Project/Framework/Builder.php): `src/Project/Framework/Builder.php`

### Project customization

- [Bundle registry](https://github.com/phpixie/project/blob/master/src/Project/Framework/Bundles.php): `src/Project/Framework/Bundles.php`
- [Extension registry](https://github.com/phpixie/project/blob/master/src/Project/Framework/Extensions.php): `src/Project/Framework/Extensions.php`

### Other components

- **HTTP client**
- **PHPixie framework**

## Connections

- HTTP client → HTTP entry point: sends request
- HTTP entry point → Project framework: creates (evidence: `web/index.php`)
- HTTP entry point → Project framework: dispatches request (evidence: `web/index.php`)
- Project framework → Framework builder: builds (evidence: `src/Project/Framework.php`)
- Framework builder → Bundle registry: creates (evidence: `src/Project/Framework/Builder.php`)
- Framework builder → Extension registry: creates (evidence: `src/Project/Framework/Builder.php`)
- Project framework → PHPixie framework: extends (evidence: `src/Project/Framework.php`)
- Framework builder → PHPixie framework: extends (evidence: `src/Project/Framework/Builder.php`)
- Bundle registry → PHPixie framework: extends bundle registry (evidence: `src/Project/Framework/Bundles.php`)
- Extension registry → PHPixie framework: extends extension registry (evidence: `src/Project/Framework/Extensions.php`)
