# Afzal Mangoes ERP — Legacy Modernization & Courier Fulfillment

Canonical page: https://taharafi.com/work/afzal-laravel/
Author: Taha Rafi

Re-architected 140+ legacy PHP files into a clean Laravel 13 + Vue 3 supply-chain ERP.

## Overview
Comprehensive enterprise modernization refactoring a 140-file legacy procedural codebase into a structured Laravel 13 REST API and Vue 3 ERP. Built custom ETL pipelines to normalize historical records, a pluggable multi-courier resolver pattern, and automated multi-channel WooCommerce order syncing.

## Technologies
Laravel 13, Vue 3, Tailwind CSS v4, MySQL, WooCommerce API, Leopard/TCS Courier APIs

## Engineering
- Pluggable Courier Architecture: `CourierManager` resolver pattern abstracting Leopard Courier, TCS, and TQS services.
- Automated Legacy ETL: 12 custom Artisan migration commands that cleaned and normalized corrupted legacy records into strict relational schemas.
- City-Tier Pricing Engine: Dynamic geographic pricing rules separating Karachi local deliveries from nationwide freight.
- External Store Sync: Scheduled background sync commands reconciling WooCommerce and Firebase orders with central inventory.

## Deliverables
- Modernized Laravel 13 ERP
- Vue 3 Management UI
- Multi-Courier API Integration
- Automated ETL Migration Suite

## Sources
Contact: connect@taharafi.com
