PractiCal Backend Platform

A production backend serving meal-subscription operations: user profiles, multi-tier subscription plans, custom meal schedules, digital wallets, order histories and automated kitchen and delivery dispatch lists.

Production work (private code)Laravel
Illustration of the PractiCal project
Laravel
PHP + MySQL
REST API
web and mobile clients
Wallets
idempotent ledger logic
Cron
daily meal allocation

The challenge

Subscription meal delivery looks simple until the edge cases arrive: concurrent order calculations, recurring wallet transactions, meal replacement rules and customers changing dietary schedules at the same moment the kitchen list is being generated.

The requirement was 100% consistency for financial and delivery data, because a wrong balance or a missing meal is immediately visible to a customer.

How I approached it

  1. 01

    A modular service layer with strict transactions

    Business rules live in Laravel services, not controllers. Anything that touches money or a delivery slot runs inside a database transaction.

  2. 02

    Idempotent wallet ledger

    Recurring billing and refund adjustments go through wallet logic designed so a retried job or request can't apply the same movement twice.

  3. 03

    Repository patterns for user state

    Reads and writes of subscriber state are centralized, which made concurrency bugs around dietary preferences and time-slot assignment possible to isolate and fix.

  4. 04

    Optimized batch generation

    Daily subscriber meal lists are produced by tuned MySQL queries and a scheduled job instead of per-user loops, keeping the nightly run fast as the subscriber count grows.

What I built

  • Designed relational schemas for users, plans, orders, wallet transactions and delivery time slots.
  • Implemented the RESTful endpoints consumed by mobile apps and web frontends.
  • Built idempotent wallet transaction logic for recurring subscription billing and refund adjustments.
  • Optimized query performance and the daily cron processing for subscriber meal allocation.
  • Fixed production concurrency bugs around dietary preference updates and time-slot assignment.
This is private production work at Technyx, so the code isn't public. For code you can read line by line, see the open-source case studies FinCore and my-store.

What this project demonstrates

  • Wallet and billing logic that holds up under retries
  • Debugging real concurrency issues in production
  • Cron and queue design for daily operational jobs

Related case studies

Laravel 12 / MySQL 8 / Redis / REST APIOpen Source

FinCore: Wallet & Double-Entry Ledger API

A versioned REST API for digital wallets where every credit, debit, transfer and reversal produces balanced ledger entries and a full audit trail. Built to show how money-handling code should behave when requests are retried, concurrent or malicious.

API Integration / Payments / SecurityProduction ยท Private

Payment Gateway Integrations

Secure integration of third-party payment gateways and verification modules into custom PHP and Laravel applications and e-commerce platforms, built so a payment is never lost, double-counted or trusted without verification.

Have a project like this in mind?

Tell me what you're building. I'll reply by email with questions or a suggested approach.