# ahmadmuzayyin/keymanager architecture

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

- Interactive diagram: https://gitdiagram.com/ahmadmuzayyin/keymanager
- Repository: https://github.com/ahmadmuzayyin/keymanager

## Overview

This Laravel application appears to sell software products and license keys, with a storefront and administrative workflows for products, orders, customers, licenses, and custom-project requests. A typical purchase submits product and customer details, creates an order and item, and issues a license; staff can then manage those records and inspect tracking or license logs. The graph also includes product catalog/version management and custom-order milestones. Relationships are limited to controller calls documented in the source index or shown in excerpts, and route dispatch documented by the indexed web routes; other runtime wiring was not inspected.

Main entry points: [`routes/web.php`](https://github.com/ahmadmuzayyin/keymanager/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/Front/LicenseOrderController.php`](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/Front/LicenseOrderController.php) (License checkout), [`app/Http/Controllers/ProductController.php`](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/ProductController.php) (Product management), [`app/Http/Controllers/OrderController.php`](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/OrderController.php) (Order management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront &amp; orders"]
  node_web_routes["Web routes<br/>[web.php]"]
  node_home["Storefront pages<br/>[HomeController.php]"]
  node_checkout["License checkout"]
end

subgraph group_catalog["Product catalog"]
  node_product_admin["Product management"]
  node_category_admin["Category management"]
end

subgraph group_operations["Admin operations"]
  node_order_admin["Order management"]
  node_customer_admin["Customer management"]
  node_license_admin["License management"]
  node_license_logs["License logs"]
  node_tracking["Order &amp; license tracking"]
  node_dashboard["Dashboard"]
  node_custom_orders["Custom project workflow"]
end

subgraph group_domain["Domain records"]
  node_products[("Products &amp; versions<br/>[Product.php]")]
  node_categories[("Product categories")]
  node_prices[("Product pricing<br/>[ProductPrice.php]")]
  node_versions[("Product versions<br/>[ProductVersion.php]")]
  node_requirements[("Product requirements")]
  node_customers[("Customers<br/>[Customer.php]")]
  node_orders[("Orders &amp; items<br/>[Order.php]")]
  node_order_items[("Order items<br/>[OrderItem.php]")]
  node_licenses[("Licenses<br/>[License.php]")]
  node_license_log_records[("License log records<br/>[LicenseLog.php]")]
  node_custom_order_records[("Custom orders<br/>[CustomOrder.php]")]
  node_milestones[("Project milestones")]
  node_downloads[("Customer downloads")]
end

node_shopper(("Shopper"))
node_staff(("Staff"))

node_shopper -->|"sends requests"| node_web_routes
node_staff -->|"sends requests"| node_web_routes
node_web_routes -->|"dispatches to"| node_home
node_web_routes -->|"dispatches to"| node_checkout
node_web_routes -->|"dispatches to"| node_order_admin
node_web_routes -->|"dispatches to"| node_product_admin
node_web_routes -->|"dispatches to"| node_category_admin
node_web_routes -->|"dispatches to"| node_customer_admin
node_web_routes -->|"dispatches to"| node_license_admin
node_web_routes -->|"dispatches to"| node_license_logs
node_web_routes -->|"dispatches to"| node_tracking
node_web_routes -->|"dispatches to"| node_dashboard
node_web_routes -->|"dispatches to"| node_custom_orders
node_home -->|"queries"| node_products
node_home -->|"queries"| node_categories
node_checkout -->|"loads product"| node_products
node_checkout -->|"loads price"| node_prices
node_checkout -->|"creates or finds"| node_customers
node_checkout -->|"creates order"| node_orders
node_checkout -->|"creates item"| node_order_items
node_checkout -->|"creates license"| node_licenses
node_product_admin -->|"manages"| node_products
node_product_admin -->|"assigns"| node_categories
node_product_admin -->|"manages"| node_prices
node_product_admin -->|"manages"| node_versions
node_product_admin -->|"loads"| node_requirements
node_category_admin -->|"manages"| node_categories
node_order_admin -->|"manages"| node_orders
node_order_admin -->|"loads"| node_order_items
node_order_admin -->|"loads"| node_customers
node_order_admin -->|"loads"| node_products
node_order_admin -->|"loads"| node_licenses
node_customer_admin -->|"manages"| node_customers
node_license_admin -->|"manages"| node_licenses
node_license_admin -->|"records activity"| node_license_log_records
node_license_logs -->|"queries"| node_license_log_records
node_tracking -->|"looks up"| node_licenses
node_tracking -->|"queries"| node_license_log_records
node_tracking -->|"looks up"| node_orders
node_dashboard -->|"summarizes"| node_customers
node_dashboard -->|"summarizes"| node_licenses
node_dashboard -->|"summarizes"| node_license_log_records
node_custom_orders -->|"manages"| node_custom_order_records
node_custom_orders -->|"manages"| node_milestones

click node_web_routes "https://github.com/ahmadmuzayyin/keymanager/blob/main/routes/web.php"
click node_home "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/Front/HomeController.php"
click node_checkout "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/Front/LicenseOrderController.php"
click node_order_admin "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/OrderController.php"
click node_product_admin "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/ProductController.php"
click node_category_admin "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/ProductCategoryController.php"
click node_customer_admin "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/CustomerController.php"
click node_license_admin "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/LisenseController.php"
click node_license_logs "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/LisenseLogController.php"
click node_tracking "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/TrackingController.php"
click node_dashboard "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/DashboardController.php"
click node_custom_orders "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/CustomOrderController.php"
click node_products "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/Product.php"
click node_categories "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductCategory.php"
click node_prices "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductPrice.php"
click node_versions "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductVersion.php"
click node_requirements "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductRequirement.php"
click node_customers "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/Customer.php"
click node_orders "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/Order.php"
click node_order_items "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/OrderItem.php"
click node_licenses "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/License.php"
click node_license_log_records "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/LicenseLog.php"
click node_custom_order_records "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/CustomOrder.php"
click node_milestones "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/CustomOrderMilestone.php"
click node_downloads "https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/CustomerDownload.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_web_routes,node_home,node_checkout toneBlue
class node_product_admin,node_category_admin toneAmber
class node_order_admin,node_customer_admin,node_license_admin,node_license_logs,node_tracking,node_dashboard,node_custom_orders toneMint
class node_products,node_categories,node_prices,node_versions,node_requirements,node_customers,node_orders,node_order_items,node_licenses,node_license_log_records,node_custom_order_records,node_milestones,node_downloads toneRose
class node_shopper,node_staff toneIndigo
```

## Components

### Storefront & orders

- [Web routes](https://github.com/ahmadmuzayyin/keymanager/blob/main/routes/web.php): `routes/web.php`
- [Storefront pages](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/Front/HomeController.php): `app/Http/Controllers/Front/HomeController.php`
- [License checkout](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/Front/LicenseOrderController.php): `app/Http/Controllers/Front/LicenseOrderController.php`

### Product catalog

- [Product management](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/ProductController.php): `app/Http/Controllers/ProductController.php`
- [Category management](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/ProductCategoryController.php): `app/Http/Controllers/ProductCategoryController.php`

### Admin operations

- [Order management](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Customer management](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/CustomerController.php): `app/Http/Controllers/CustomerController.php`
- [License management](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/LisenseController.php): `app/Http/Controllers/LisenseController.php`
- [License logs](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/LisenseLogController.php): `app/Http/Controllers/LisenseLogController.php`
- [Order & license tracking](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/TrackingController.php): `app/Http/Controllers/TrackingController.php`
- [Dashboard](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Custom project workflow](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Http/Controllers/CustomOrderController.php): `app/Http/Controllers/CustomOrderController.php`

### Domain records

- [Products & versions](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/Product.php): `app/Models/Product.php`
- [Product categories](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductCategory.php): `app/Models/ProductCategory.php`
- [Product pricing](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductPrice.php): `app/Models/ProductPrice.php`
- [Product versions](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductVersion.php): `app/Models/ProductVersion.php`
- [Product requirements](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/ProductRequirement.php): `app/Models/ProductRequirement.php`
- [Customers](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/Customer.php): `app/Models/Customer.php`
- [Orders & items](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/Order.php): `app/Models/Order.php`
- [Order items](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/OrderItem.php): `app/Models/OrderItem.php`
- [Licenses](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/License.php): `app/Models/License.php`
- [License log records](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/LicenseLog.php): `app/Models/LicenseLog.php`
- [Custom orders](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/CustomOrder.php): `app/Models/CustomOrder.php`
- [Project milestones](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/CustomOrderMilestone.php): `app/Models/CustomOrderMilestone.php`
- [Customer downloads](https://github.com/ahmadmuzayyin/keymanager/blob/main/app/Models/CustomerDownload.php): `app/Models/CustomerDownload.php`

### Other components

- **Shopper**
- **Staff**

## Connections

- Shopper → Web routes: sends requests (evidence: `routes/web.php`)
- Staff → Web routes: sends requests (evidence: `routes/web.php`)
- Web routes → Storefront pages: dispatches to (evidence: `routes/web.php`)
- Web routes → License checkout: dispatches to (evidence: `routes/web.php`)
- Web routes → Order management: dispatches to (evidence: `routes/web.php`)
- Web routes → Product management: dispatches to (evidence: `routes/web.php`)
- Web routes → Category management: dispatches to (evidence: `routes/web.php`)
- Web routes → Customer management: dispatches to (evidence: `routes/web.php`)
- Web routes → License management: dispatches to (evidence: `routes/web.php`)
- Web routes → License logs: dispatches to (evidence: `routes/web.php`)
- Web routes → Order & license tracking: dispatches to (evidence: `routes/web.php`)
- Web routes → Dashboard: dispatches to (evidence: `routes/web.php`)
- Web routes → Custom project workflow: dispatches to (evidence: `routes/web.php`)
- Storefront pages → Products & versions: queries (evidence: `app/Http/Controllers/Front/HomeController.php`)
- Storefront pages → Product categories: queries (evidence: `app/Http/Controllers/Front/HomeController.php`)
- License checkout → Products & versions: loads product (evidence: `app/Http/Controllers/Front/LicenseOrderController.php`)
- License checkout → Product pricing: loads price (evidence: `app/Http/Controllers/Front/LicenseOrderController.php`)
- License checkout → Customers: creates or finds (evidence: `app/Http/Controllers/Front/LicenseOrderController.php`)
- License checkout → Orders & items: creates order (evidence: `app/Http/Controllers/Front/LicenseOrderController.php`)
- License checkout → Order items: creates item (evidence: `app/Http/Controllers/Front/LicenseOrderController.php`)
- License checkout → Licenses: creates license (evidence: `app/Http/Controllers/Front/LicenseOrderController.php`)
- Product management → Products & versions: manages (evidence: `app/Http/Controllers/ProductController.php`)
- Product management → Product categories: assigns (evidence: `app/Http/Controllers/ProductController.php`)
- Product management → Product pricing: manages (evidence: `app/Http/Controllers/ProductController.php`)
- Product management → Product versions: manages (evidence: `app/Http/Controllers/ProductController.php`)
- Product management → Product requirements: loads (evidence: `app/Http/Controllers/ProductController.php`)
- Category management → Product categories: manages (evidence: `app/Http/Controllers/ProductCategoryController.php`)
- Order management → Orders & items: manages (evidence: `app/Http/Controllers/OrderController.php`)
- Order management → Order items: loads (evidence: `app/Http/Controllers/OrderController.php`)
- Order management → Customers: loads (evidence: `app/Http/Controllers/OrderController.php`)
- Order management → Products & versions: loads (evidence: `app/Http/Controllers/OrderController.php`)
- Order management → Licenses: loads (evidence: `app/Http/Controllers/OrderController.php`)
- Customer management → Customers: manages (evidence: `app/Http/Controllers/CustomerController.php`)
- License management → Licenses: manages (evidence: `app/Http/Controllers/LisenseController.php`)
- License management → License log records: records activity (evidence: `app/Http/Controllers/LisenseController.php`)
- License logs → License log records: queries (evidence: `app/Http/Controllers/LisenseLogController.php`)
- Order & license tracking → Licenses: looks up (evidence: `app/Http/Controllers/TrackingController.php`)
- Order & license tracking → License log records: queries (evidence: `app/Http/Controllers/TrackingController.php`)
- Order & license tracking → Orders & items: looks up (evidence: `app/Http/Controllers/TrackingController.php`)
- Dashboard → Customers: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard → Licenses: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Dashboard → License log records: summarizes (evidence: `app/Http/Controllers/DashboardController.php`)
- Custom project workflow → Custom orders: manages (evidence: `app/Http/Controllers/CustomOrderController.php`)
- Custom project workflow → Project milestones: manages (evidence: `app/Http/Controllers/CustomOrderController.php`)
