How fastaze/restoweb works
RestoWeb is a PHP/MySQL restaurant-ordering application. Customers browse a public or authenticated product catalogue, register or sign in, add products to an active order, edit the cart and select dine-in or takeaway, then submit the payment form; the order advances to preparation. Users can review order history, while restaurant staff have API operations to list, accept, refuse and complete orders. The payment form and order APIs are shown, but no external payment processor or email implementation is evidenced. The graph follows the sampled PHP calls and README workflow; unsampled features are included only where documented.
Main entry points: restoweb.sql MySQL database · paiement.php Payment form · accueilConnecte.php Signed-in catalogue · panier.php Cart management
Components 19
Customer ordering
- Public catalogue
index.php - Public product list
component/componentArticleIndex.php - Signed-in catalogue
accueilConnecte.php - Product list
component/componentArticle.php - Cart management
panier.php - Payment form
paiement.php
Accounts and history
- Registration
inscription.php - Sign-in
connection.php - Order history
profile.php
Order fulfillment
- Order listing API
api/liste_commandes.php - Accept order API
api/commande_accepter.php - Refuse order API
api/commande_refuser.php - Complete order API
api/commande_terminer.php - Email notification
Persistence and shared logic
- Active order state
template/chekEtat.php - Database connection
template/ini.php - MySQL database
doc/mpd/restoweb.sql
Other components
- Customer
- Restaurant staff
Connections 27
- Customer → Public catalogue: browses
README.md - Public catalogue → Public product list: includes
index.php - Customer → Registration: registers
README.md - Customer → Sign-in: signs in
README.md - Customer → Signed-in catalogue: browses
README.md - Signed-in catalogue → Product list: includes
accueilConnecte.php - Signed-in catalogue → Active order state: checks state
accueilConnecte.php - Customer → Cart management: edits cart
README.md - Cart management → Payment form: redirects
panier.php - Customer → Payment form: submits payment
README.md - Registration → Active order state: creates order
inscription.php - Order history → MySQL database: reads history
README.md - Database connection → MySQL database: connects
template/ini.php - Public product list → MySQL database: reads products
component/componentArticleIndex.php - Product list → MySQL database: reads products
component/componentArticle.php - Cart management → MySQL database: updates order lines
panier.php - Payment form → MySQL database: updates order status
paiement.php - Active order state → MySQL database: reads and creates
template/chekEtat.php - Restaurant staff → Order listing API: lists orders
- Order listing API → MySQL database: reads pending orders
api/liste_commandes.php - Restaurant staff → Accept order API: accepts order
- Accept order API → MySQL database: sets preparation
api/commande_accepter.php - Restaurant staff → Refuse order API: refuses order
- Refuse order API → MySQL database: abandons order
api/commande_refuser.php - Restaurant staff → Complete order API: completes order
- Complete order API → MySQL database: updates order
api/commande_terminer.php - Payment form → Email notification: notifies by email
README.md