E-commerce
Soodou Shop
Soodou Shop is a high-tech e-commerce site written in object-oriented PHP 8, with no framework or Composer dependency, on MariaDB. Created in 2020, it was fully reworked in 2026: new interface, end-to-end shopping flow, Stripe payment, sales-based analytics and security hardening. It starts with a single Docker command.
Overview
Soodou Shop sells smartphones, computers, tablets, screens and audio accessories. The storefront lets customers search, filter, order and pay; the back office tracks activity and manages the whole catalogue.
Problem
The 2020 version no longer ran as-is: broken database connection, failing SQL import, no cart or payment, unfinished admin pages, and a back office readable without logging in.
Solution
A rework that keeps the original architecture (object-oriented PHP, one model per table, one router per entry point) and completes it: end-to-end shopping flow, Stripe payment, analytics computed from paid orders, a new responsive interface and a fictitious demo dataset whose dates always stay recent.
Architecture
Two entry points (store and back office) route to pages through an allow-list. Models rely on PDO with prepared statements and transactions. The Stripe client is a small cURL HTTP client, with no SDK. The app runs in Docker (Apache and MariaDB), with the database imported automatically on first start.
Outcome
A complete, documented site that starts with one command, with demo accounts for both the store and the back office.
Impact
Shows how to build a complete online store without a framework: data model, transactions, payment, security and back office.
Key points
- The order and the stock reservation run in one transaction: a conditional update prevents selling more than the stock, even with two simultaneous customers.
- Payment is only confirmed after checking the session with the Stripe API, never on the browser’s word alone.
- Security rebuilt from scratch: hashed passwords, CSRF tokens, output escaping, real file-type checks on uploads, only the public folder exposed.
Storefront
- Full-text search, combinable filters (category, brands, price, deals, stock), sorting and pagination
- Product page with sale price, stock status and related products
- Session cart, automatically capped at available stock
Checkout and payment
- Customer account: sign-up, login, order history and tracking
- Order created and stock reserved in a single transaction
- Stripe Checkout payment in test mode, verified server-side; simulated payment without a key
Back office
- Dashboard: revenue, average basket, 12-month sales, categories, countries, low stock
- Order lifecycle: pending, paid, shipped, delivered, or cancelled with stock returned
- Management of products (photo upload), categories, brands, customers, suppliers and admins