How artrabr/loxja works
loxja is a PHP online shop: customers browse products, manage accounts and addresses, add items to a cart, and finalize purchases; administrators maintain products and review sales. The graph keeps those user-facing stages distinct from the domain and persistence layer. Evidence is limited to the README, source index references, and sampled excerpts; some connections are therefore omitted rather than inferred.
Main entry points: ProductDB.php Product persistence · SaleReportDB.php Sale persistence · index.php Order finalization · ClientDB.php Client persistence
Components 32
Customer shopping
- Storefront catalog
Public/index.php - Product detail
Public/product/index.php - Shopping cart
Public/ShoppingCart/index.php - Add to cart
Public/ShoppingCart/tempadd.php - Checkout
Public/Checkout/index.php - Order finalization
Public/Finalization/index.php
Accounts and addresses
- Login
Public/Login/index.php - Registration
Public/Registration/index.php - Login processing
Src/LoginProcess.php - Profile management
Public/profile/index.php - Address management
Public/Client/index.php - Address processing
Src/clientAddressProcess.php
Administration
- Product administration
Public/Administration/add-product.php - Admin dashboard
Public/Administration/index.php - Sales reports
Public/Administration/sales-report.php - Customer sales history
Public/salesReport/index.php
Domain and persistence
- Client model
Src/Class/Client/Client.php - Client persistence
Src/Class/Client/ClientDB.php - Address model
Src/Class/ClientAddress/ClientAddress.php - Address persistence
Src/Class/ClientAddress/ClientAddressDB.php - Product model
Src/Class/Product/Product.php - Product persistence
Src/Class/Product/ProductDB.php - Cart model
Src/Class/ShoppingCart/ShoppingCart.php - Cart persistence
Src/Class/ShoppingCart/ShoppingCartDB.php - Sale model
Src/Class/SaleReport/SaleReport.php - Sale persistence
Src/Class/SaleReport/SaleReportDB.php - Payment method
Src/Class/SaleReport/PaymentMethod.php - Database connection
Src/Connection.php - Input validation
Src/Validation.php - Valitron validator
Librarys/Valitron/Validator.php
Other components
- Customer
- MySQL database
Connections 48
- Customer → Storefront catalog: browses
Public/index.php - Customer → Product detail: views
- Customer → Shopping cart: manages
Public/ShoppingCart/index.php - Customer → Login: signs in
Public/Login/index.php - Customer → Registration: registers
Public/Registration/index.php - Customer → Profile management: edits profile
Public/profile/index.php - Customer → Address management: manages address
Public/Client/index.php - Customer → Checkout: checks out
Public/Checkout/index.php - Storefront catalog → Product persistence: loads products
Public/index.php - Storefront catalog → Cart persistence: loads cart
Public/index.php - Storefront catalog → Product model: renders products
Public/index.php - Shopping cart → Cart persistence: loads cart
Public/ShoppingCart/index.php - Shopping cart → Product persistence: loads products
Public/ShoppingCart/index.php - Add to cart → Product persistence: loads product
Public/ShoppingCart/tempadd.php - Add to cart → Cart persistence: updates cart
Public/ShoppingCart/tempadd.php - Checkout → Order finalization: continues to
- Order finalization → Cart persistence: loads cart
Public/Finalization/index.php - Order finalization → Address persistence: loads address
Public/Finalization/index.php - Order finalization → Sale persistence: records sale
Public/Finalization/index.php - Order finalization → Product persistence: updates stock
Public/Finalization/index.php - Order finalization → Payment method: uses method
Public/Finalization/index.php - Login → Login processing: submits credentials
Public/Login/index.php - Login processing → Client persistence: authenticates
Src/LoginProcess.php - Login processing → Input validation: validates input
Src/LoginProcess.php - Registration → Input validation: validates input
- Profile management → Client persistence: updates client
Public/profile/index.php - Profile management → Input validation: validates input
Public/profile/index.php - Address management → Address persistence: loads address
Public/Client/index.php - Address processing → Address persistence: writes address
Src/clientAddressProcess.php - Product administration → Product persistence: manages products
- Admin dashboard → Sale persistence: loads summary
Public/Administration/index.php - Sales reports → Sale persistence: loads reports
Public/Administration/sales-report.php - Customer sales history → Sale persistence: loads sales
Public/salesReport/index.php - Client persistence → Client model: creates models
Src/Class/Client/ClientDB.php - Address persistence → Address model: creates models
Src/Class/ClientAddress/ClientAddressDB.php - Product persistence → Product model: creates models
Src/Class/Product/ProductDB.php - Cart model → Product persistence: loads product
Src/Class/ShoppingCart/ShoppingCart.php - Cart persistence → Cart model: persists cart
Src/Class/ShoppingCart/ShoppingCartDB.php - Sale persistence → Sale model: creates reports
Src/Class/SaleReport/SaleReportDB.php - Sale persistence → Client persistence: loads client
Src/Class/SaleReport/SaleReportDB.php - Sale persistence → Product persistence: loads product
Src/Class/SaleReport/SaleReportDB.php - Client persistence → Database connection: uses database
- Address persistence → MySQL database: reads writes
Src/Class/ClientAddress/ClientAddressDB.php - Client persistence → MySQL database: reads writes
Src/Class/Client/ClientDB.php - Product persistence → MySQL database: reads writes
Src/Class/Product/ProductDB.php - Sale persistence → MySQL database: reads writes
Src/Class/SaleReport/SaleReportDB.php - Database connection → MySQL database: connects
Src/Connection.php - Input validation → Valitron validator: delegates validation
Src/Validation.php