How comp-alex/labscentique works
LabScentique is a PHP perfume storefront and inventory-management application. Customers browse the catalog, manage accounts and favorites, and submit reviews; staff use a dashboard to adjust stock and manage purchase lists. The sampled code shows page entry points, JSON endpoints, and PDO-backed persistence. The README documents the wider product capabilities, but several frontend-to-endpoint connections and the accreditation page’s role are not established by the excerpts, so those links are omitted or marked unverified.
Main entry points: config.php Database Configuration · init.sql Application Database · index.php Storefront Entry · reviews.php Reviews API
Components 16
Storefront
- Storefront Entry
public/index.php - Catalog View
public/index_view.php - Catalog and Purchase API
api/data.php - Accreditation Page
public/accreditation.php - Reviews API
api/reviews.php - Reviews Route
public/api/reviews.php
Customer Accounts
- Profile Page
public/profile.php - Profile API
api/user-profile.php - Favorites and Purchases API
api/user-favorites.php
Store Operations
- Staff Dashboard
public/dashboard.php - Dashboard API
api/dashboard.php
Application Data
- Database Configuration
config/config.php - Application Database
database/init.sql
Other components
- Customer
- Store Staff
- Web Browser
Connections 25
- Customer → Web Browser: uses
README.md - Store Staff → Web Browser: uses
README.md - Web Browser → Storefront Entry: opens
README.md - Storefront Entry → Database Configuration: loads
public/index.php - Storefront Entry → Catalog View: renders
public/index.php - Web Browser → Catalog View: browses
README.md - Web Browser → Reviews Route: submits reviews
README.md - Reviews Route → Reviews API: delegates
public/api/reviews.php - Reviews API → Database Configuration: loads
api/reviews.php - Reviews API → Application Database: reads and updates
api/reviews.php - Web Browser → Profile Page: opens
README.md - Profile Page → Favorites and Purchases API: fetches purchases
public/profile.php - Profile Page → Profile API: updates profile
- Profile API → Database Configuration: loads
api/user-profile.php - Profile API → Application Database: reads and updates
api/user-profile.php - Favorites and Purchases API → Database Configuration: loads
api/user-favorites.php - Favorites and Purchases API → Application Database: reads and updates
api/user-favorites.php - Store Staff → Staff Dashboard: manages stock
README.md - Staff Dashboard → Dashboard API: refreshes data
public/dashboard.php - Staff Dashboard → Application Database: updates inventory
public/dashboard.php - Dashboard API → Database Configuration: loads
api/dashboard.php - Dashboard API → Application Database: reads and updates
- Catalog and Purchase API → Database Configuration: loads
api/data.php - Catalog and Purchase API → Application Database: reads and updates
api/data.php - Web Browser → Catalog and Purchase API: requests catalog