How developer-rahul-mandal/sonali-chicken works
Sonali Chicken is a PHP/MySQL shop for browsing fresh products, placing delivery orders, and administering shop operations. The customer path runs from product discovery through cart and checkout to order creation; customers can later submit product reviews for moderation and public display. Admin pages manage products, banners, coupons, orders, reviews, and settings. The README documents email and WhatsApp order/status alerts. Some pages and integrations were not sampled, so links for documented capabilities are included only where the tree and documented workflow support them; detailed wiring for unsampled code is not inferred.
Main entry points: place-order.php Order creation · database.php Shared PHP services · submit-review.php Review submission · orders.php Order management
Components 26
Shopping storefront
- Home and banners
index.php - Product catalog
products.php - Product detail
product.php - Shopping cart
cart.php - Checkout
checkout.php
Orders and reviews
- Coupon validation
api/verify-coupon.php - Order creation
api/place-order.php - Order confirmation
order-success.php - Review form
review.php - Review submission
api/submit-review.php - Public reviews
reviews.php
Shop administration
- Order management
admin/orders.php - Order history
admin/order-history.php - Product management
admin/products.php - Banner management
admin/banners.php - Coupon management
admin/coupons.php - Review moderation
admin/reviews.php - Shop settings
admin/settings.php - QR codes
admin/qr-codes.php
Data and notifications
- Shared PHP services
config/database.php - MySQL database
- Uploaded media
uploads - SMTP email
- WhatsApp API
Other components
- Customer
- Shop admin
Connections 47
- Customer → Home and banners: browses
- Customer → Product catalog: browses
- Customer → Product detail: views
- Customer → Shopping cart: manages cart
- Customer → Checkout: checks out
- Home and banners → Shared PHP services: loads settings
- Home and banners → MySQL database: reads banners/products
- Product catalog → MySQL database: reads products
- Product detail → MySQL database: reads product
- Checkout → Coupon validation: checks coupon
- Checkout → Order creation: submits order
- Order creation → MySQL database: writes order
- Order creation → Shared PHP services: uses helpers
- Order creation → Order confirmation: returns confirmation
- Order creation → SMTP email: sends alerts
- Order creation → WhatsApp API: sends alerts
- Customer → Review form: rates purchase
- Review form → Review submission: submits review
- Review submission → MySQL database: checks order; saves review
- Review submission → Uploaded media: stores review image
- Review submission → SMTP email: notifies admin
- Customer → Public reviews: views reviews
- Public reviews → MySQL database: reads approved reviews
- Shop admin → Order management: manages orders
- Shop admin → Product management: manages products
- Shop admin → Banner management: manages banners
- Shop admin → Coupon management: manages coupons
- Shop admin → Review moderation: moderates reviews
- Shop admin → Shop settings: configures shop
- Shop admin → QR codes: manages QR codes
- Order management → MySQL database: updates order status
- Order management → SMTP email: sends status alert
- Order management → WhatsApp API: sends status alert
- Order history → MySQL database: reads past orders
- Product management → MySQL database: updates products
- Product management → Uploaded media: stores product images
- Banner management → MySQL database: updates banners
- Banner management → Uploaded media: stores banner images
- Coupon management → MySQL database: updates coupons
- Review moderation → MySQL database: moderates reviews
- Review moderation → SMTP email: notifies customer
- Review moderation → WhatsApp API: notifies customer
- Shop settings → MySQL database: saves settings
- QR codes → MySQL database: reads QR data
- Shared PHP services → MySQL database: connects
- Shared PHP services → SMTP email: sends via SMTP
- Shared PHP services → WhatsApp API: sends messages