01The problem
Leads from forms and registrations arrived in different places and had to be copied and chased by hand.
02What I did
Built a PHP/MySQL CRM with separate staff and customer portals, webhooks that capture form submissions automatically, duplicate detection, colour-coded lead status, automatic follow-up dates, and email sequences triggered by status changes.
03What it did
This was the first CRM, written in PHP on a standard shared host. Staff could import leads from CSV, sort them by show, priority and date, see the funnel and revenue by source, and spot where activity was stalling. A unified inbox pulled each person's email in over IMAP every five minutes and sent SMS and WhatsApp through Twilio, with credentials encrypted at rest. It even had an AI search, built on Google's Gemini, that answered questions using the dashboard's own numbers. Around 46 actions ran behind the dashboard.
04Knowing when to cut
The custom spreadsheet grid I had written was the most fragile part. Replacing it with embedded Google Sheets the team already used removed over 2,000 lines of JavaScript and took the dashboard file from 4,915 lines to 1,166. A migration script also cleaned the legacy free-text statuses into a fixed set, so "happy to proceed" and its variations all became "quotation sent".
Running it day to day showed the limits of one very large dashboard file and a fixed schema, and those lessons shaped the Node.js CRM that replaced it.
05The outcome
Leads were captured and followed up automatically, and the lessons shaped the architecture of the later Node.js CRM.
06Tools & skills
- PHP
- MySQL
- Webhooks
- Email Automation
- CRM Design