# bagisto/laravel-aliexpress-dropship architecture

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

- Interactive diagram: https://gitdiagram.com/bagisto/laravel-aliexpress-dropship
- Repository: https://github.com/bagisto/laravel-aliexpress-dropship

## Overview

This Bagisto extension imports AliExpress listings into the store, synchronizes product information, imports reviews, and supports an order workflow that exposes store orders for AliExpress checkout. The Chrome extension is the documented initiating client for product/order operations; Bagisto admin users manage the resulting catalog and orders. The graph follows shown routes, controller calls, and repository references. Several capabilities are documented in the README but their implementation was not sampled, so those links are marked unverified rather than inferred as direct calls.

Main entry points: [`src/Http/routes.php`](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/routes.php) (Extension routes), [`src/Repositories/AliExpressProductRepository.php`](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressProductRepository.php) (Product mapping), [`src/Providers/DropshipServiceProvider.php`](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Providers/DropshipServiceProvider.php) (Package registration), [`src/Http/admin-routes.php`](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/admin-routes.php) (Admin routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_public_routes["Extension routes<br/>[routes.php]"]
  node_admin_routes["Admin routes<br/>[admin-routes.php]"]
  node_security["Shop verification"]
  node_admin_product["Product admin"]
  node_admin_order["Order admin"]
  node_review_endpoint["Review endpoint"]
  node_product_grid["Product listing"]
end

subgraph group_catalog["Catalog import"]
  node_product_import["Product import"]
  node_attribute_import["Attribute import"]
  node_product_catalog["Product mapping"]
  node_attribute_mapping["Attribute mapping"]
  node_attribute_options["Attribute options"]
  node_reviews["Review import"]
  node_product_sync["Product sync<br/>[ProductUpdate.php]"]
end

subgraph group_orders["Order operations"]
  node_order_endpoint["Extension orders"]
  node_order_mapping["Order mapping"]
  node_order_listener["Order listener<br/>[Order.php]"]
  node_order_grid["Order listing<br/>[OrderDataGrid.php]"]
end

subgraph group_foundation["Extension foundation"]
  node_models[("Dropship records")]
  node_provider["Package registration"]
  node_events["Event registration"]
  node_settings["Import settings<br/>[system.php]"]
end

node_admin(("Store admin"))
node_extension(("Chrome extension"))
node_aliexpress{{"AliExpress"}}
node_scheduled_sync(("Scheduled sync"))
node_bagisto_catalog[("Bagisto catalog")]
node_bagisto_orders[("Bagisto orders")]

node_extension -->|"requests"| node_public_routes
node_public_routes -->|"routes to"| node_security
node_public_routes -->|"routes to"| node_product_import
node_public_routes -->|"routes to"| node_attribute_import
node_public_routes -->|"routes to"| node_review_endpoint
node_public_routes -->|"routes to"| node_order_endpoint
node_admin -.->|"manages"| node_admin_routes
node_admin_routes -.->|"routes to"| node_admin_product
node_admin_routes -.->|"routes to"| node_admin_order
node_product_import -->|"imports via"| node_product_catalog
node_attribute_import -->|"imports via"| node_attribute_mapping
node_review_endpoint -->|"imports via"| node_reviews
node_product_catalog -->|"uses"| node_attribute_mapping
node_product_catalog -->|"uses"| node_attribute_options
node_attribute_mapping -->|"checks options"| node_attribute_options
node_product_catalog -->|"creates products"| node_bagisto_catalog
node_reviews -.->|"creates reviews"| node_bagisto_catalog
node_aliexpress -.->|"supplies listing data"| node_product_import
node_aliexpress -.->|"supplies reviews"| node_reviews
node_scheduled_sync -.->|"runs periodically"| node_product_sync
node_product_sync -->|"updates via"| node_product_catalog
node_admin -.->|"views products"| node_product_grid
node_admin -.->|"views orders"| node_order_grid
node_order_endpoint -->|"reads and updates"| node_order_mapping
node_order_listener -->|"records placed order"| node_order_mapping
node_order_mapping -->|"links store orders"| node_bagisto_orders
node_extension -.->|"requests checkout data"| node_order_endpoint
node_provider -->|"loads routes"| node_public_routes
node_provider -->|"loads routes"| node_admin_routes
node_provider -->|"registers"| node_events
node_events -->|"registers listener"| node_order_listener
node_provider -->|"merges config"| node_settings
node_product_catalog -.->|"persists records"| node_models
node_order_mapping -.->|"persists records"| node_models

click node_public_routes "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/routes.php"
click node_admin_routes "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/admin-routes.php"
click node_security "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/SecurityController.php"
click node_admin_product "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/Admin/ProductController.php"
click node_admin_order "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/Admin/OrderController.php"
click node_product_import "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/ProductController.php"
click node_attribute_import "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/AttributeController.php"
click node_product_catalog "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressProductRepository.php"
click node_attribute_mapping "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressAttributeRepository.php"
click node_attribute_options "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressAttributeOptionRepository.php"
click node_reviews "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressProductReviewRepository.php"
click node_review_endpoint "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/ReviewController.php"
click node_product_sync "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Console/Commands/ProductUpdate.php"
click node_order_endpoint "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/OrderController.php"
click node_order_mapping "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressOrderRepository.php"
click node_order_listener "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Listeners/Order.php"
click node_order_grid "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/DataGrids/Admin/OrderDataGrid.php"
click node_product_grid "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/DataGrids/Admin/ProductDataGrid.php"
click node_models "https://github.com/bagisto/laravel-aliexpress-dropship/tree/master/src/Models"
click node_provider "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Providers/DropshipServiceProvider.php"
click node_events "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Providers/EventServiceProvider.php"
click node_settings "https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Config/system.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_public_routes,node_admin_routes,node_security,node_admin_product,node_admin_order,node_review_endpoint,node_product_grid toneBlue
class node_product_import,node_attribute_import,node_product_catalog,node_attribute_mapping,node_attribute_options,node_reviews,node_product_sync,node_bagisto_catalog,node_bagisto_orders toneAmber
class node_order_endpoint,node_order_mapping,node_order_listener,node_order_grid toneMint
class node_models,node_provider,node_events,node_settings toneRose
class node_admin,node_extension,node_aliexpress,node_scheduled_sync toneIndigo
```

## Components

### Entry points

- [Extension routes](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/routes.php): `src/Http/routes.php`
- [Admin routes](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/admin-routes.php): `src/Http/admin-routes.php`
- [Shop verification](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/SecurityController.php): `src/Http/Controllers/SecurityController.php`
- [Product admin](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/Admin/ProductController.php): `src/Http/Controllers/Admin/ProductController.php`
- [Order admin](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/Admin/OrderController.php): `src/Http/Controllers/Admin/OrderController.php`
- [Review endpoint](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/ReviewController.php): `src/Http/Controllers/ReviewController.php`
- [Product listing](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/DataGrids/Admin/ProductDataGrid.php): `src/DataGrids/Admin/ProductDataGrid.php`

### Catalog import

- [Product import](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/ProductController.php): `src/Http/Controllers/ProductController.php`
- [Attribute import](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/AttributeController.php): `src/Http/Controllers/AttributeController.php`
- [Product mapping](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressProductRepository.php): `src/Repositories/AliExpressProductRepository.php`
- [Attribute mapping](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressAttributeRepository.php): `src/Repositories/AliExpressAttributeRepository.php`
- [Attribute options](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressAttributeOptionRepository.php): `src/Repositories/AliExpressAttributeOptionRepository.php`
- [Review import](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressProductReviewRepository.php): `src/Repositories/AliExpressProductReviewRepository.php`
- [Product sync](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Console/Commands/ProductUpdate.php): `src/Console/Commands/ProductUpdate.php`

### Order operations

- [Extension orders](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Http/Controllers/OrderController.php): `src/Http/Controllers/OrderController.php`
- [Order mapping](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Repositories/AliExpressOrderRepository.php): `src/Repositories/AliExpressOrderRepository.php`
- [Order listener](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Listeners/Order.php): `src/Listeners/Order.php`
- [Order listing](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/DataGrids/Admin/OrderDataGrid.php): `src/DataGrids/Admin/OrderDataGrid.php`

### Extension foundation

- [Dropship records](https://github.com/bagisto/laravel-aliexpress-dropship/tree/master/src/Models): `src/Models`
- [Package registration](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Providers/DropshipServiceProvider.php): `src/Providers/DropshipServiceProvider.php`
- [Event registration](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Providers/EventServiceProvider.php): `src/Providers/EventServiceProvider.php`
- [Import settings](https://github.com/bagisto/laravel-aliexpress-dropship/blob/master/src/Config/system.php): `src/Config/system.php`

### Other components

- **Store admin**
- **Chrome extension**
- **AliExpress**
- **Scheduled sync**
- **Bagisto catalog**
- **Bagisto orders**

## Connections

- Chrome extension → Extension routes: requests (evidence: `src/Http/routes.php`)
- Extension routes → Shop verification: routes to (evidence: `src/Http/routes.php`)
- Extension routes → Product import: routes to (evidence: `src/Http/routes.php`)
- Extension routes → Attribute import: routes to (evidence: `src/Http/routes.php`)
- Extension routes → Review endpoint: routes to (evidence: `src/Http/routes.php`)
- Extension routes → Extension orders: routes to (evidence: `src/Http/routes.php`)
- Store admin → Admin routes: manages (evidence: `src/Http/admin-routes.php`)
- Admin routes → Product admin: routes to (evidence: `src/Http/admin-routes.php`)
- Admin routes → Order admin: routes to (evidence: `src/Http/admin-routes.php`)
- Product import → Product mapping: imports via (evidence: `src/Http/Controllers/ProductController.php`)
- Attribute import → Attribute mapping: imports via (evidence: `src/Http/Controllers/AttributeController.php`)
- Review endpoint → Review import: imports via (evidence: `src/Http/Controllers/ReviewController.php`)
- Product mapping → Attribute mapping: uses (evidence: `src/Repositories/AliExpressProductRepository.php`)
- Product mapping → Attribute options: uses (evidence: `src/Repositories/AliExpressProductRepository.php`)
- Attribute mapping → Attribute options: checks options (evidence: `src/Repositories/AliExpressAttributeRepository.php`)
- Product mapping → Bagisto catalog: creates products (evidence: `src/Repositories/AliExpressProductRepository.php`)
- Review import → Bagisto catalog: creates reviews
- AliExpress → Product import: supplies listing data
- AliExpress → Review import: supplies reviews
- Scheduled sync → Product sync: runs periodically
- Product sync → Product mapping: updates via (evidence: `src/Console/Commands/ProductUpdate.php`)
- Store admin → Product listing: views products
- Store admin → Order listing: views orders
- Extension orders → Order mapping: reads and updates (evidence: `src/Http/Controllers/OrderController.php`)
- Order listener → Order mapping: records placed order (evidence: `src/Listeners/Order.php`)
- Order mapping → Bagisto orders: links store orders (evidence: `src/Repositories/AliExpressOrderRepository.php`)
- Chrome extension → Extension orders: requests checkout data
- Package registration → Extension routes: loads routes (evidence: `src/Providers/DropshipServiceProvider.php`)
- Package registration → Admin routes: loads routes (evidence: `src/Providers/DropshipServiceProvider.php`)
- Package registration → Event registration: registers (evidence: `src/Providers/DropshipServiceProvider.php`)
- Event registration → Order listener: registers listener (evidence: `src/Providers/EventServiceProvider.php`)
- Package registration → Import settings: merges config (evidence: `src/Providers/DropshipServiceProvider.php`)
- Product mapping → Dropship records: persists records
- Order mapping → Dropship records: persists records
