Delivered remotely for a business based in Nashville, United States. Names withheld by agreement.
Project Overview
Local wedding and special-event discovery suffers from an awkward asymmetry: buyers need transparent pricing and real availability before sharing contact details, while boutique vendors—florists, bands, venues, and photographers—refuse to publish blanket discounts that cannibalize peak-season bookings. Static directories fail both sides because they lack structured promotional constraints and verified inquiry routing.
We engineered a two-sided deals marketplace and lead-generation platform on PHP, MySQL, Apache, JavaScript, and jQuery. Event planners browse geographically curated promotions with clear redemption rules and submit qualified multi-field inquiries, while service providers control active campaign windows, date blackouts, and inbound lead pipelines from an integrated vendor workbench.
Business Bottleneck
Before building a dedicated platform, event deal aggregation relied on manual blog posts and generic contact forms. Expired promotions remained indexed in search results for months, frustrating buyers who called vendors expecting seasonal rates that had lapsed.
Simultaneously, vendors complained of low-intent inquiries missing basic event dates or venue cities, alongside duplicate notifications whenever an anxious planner submitted the same form twice. Without a central transactional ledger linking promotional packages, regional visibility, and verified lead delivery, the marketplace could neither guarantee buyer trust nor justify vendor subscription renewals.
Architectural Strategy
The engineering plan prioritized search-indexable speed, deterministic SQL integrity, and low operational overhead:
- Server-rendered SEO foundation. Every regional market, vendor category, and promotional landing page renders full HTML server-side behind clean Apache
mod_rewriteroutes so search crawlers index structured pricing and city metadata immediately. - Progressive client interactivity. JavaScript and jQuery power live facet filtering, vendor gallery lightboxes, availability checks, and multi-step quote modals via lightweight JSON endpoints without forcing full-page reloads.
- Database-enforced deal and lead invariants. Promotional validity windows, lead deduplication, and vendor quota limits live in MySQL transactions and indexed constraints rather than fragile client-side checks.
Core Capabilities
Buyer Discovery & Promotional Redemption
- Geo-Faceted Browsing: Shoppers filter active deals by metro area, vendor discipline, guest capacity, and discount structure using AJAX-backed query updates that preserve shareable URL parameters.
- Structured Deal Cards: Each promotion explicitly displays blackout dates, minimum spend thresholds, expiration countdowns, and bundled inclusions alongside vendor portfolios.
- Guided Quote Funnel: A jQuery multi-step inquiry drawer collects event date, venue status, estimated budget, and contact preferences while validating required fields asynchronously before submission.
Vendor Operations & Lead Management
- Self-Service Package Builder: Vendors draft seasonal packages, upload compressed portfolio imagery, define redemption caps, and schedule future start and end dates pending marketplace moderation.
- Blackout Calendar & Capacity Controls: Service providers block booked weekends so buyers receive immediate availability feedback and do not waste inquiries on unavailable dates.
- Lead Inbox & Status Tracking: Vendors review incoming buyer briefs, mark leads as contacted or booked, and export inquiry histories for external follow-up.
Marketplace Administration
- Moderation & Quality Gate: Administrators audit new vendor registrations, verify promotional terms against listing guidelines, and pause non-compliant listings with a single status transition.
- Lead Dispute & Credit Ledger: Staff inspect flagged or duplicate lead claims using immutable submission logs and adjust vendor lead allocations transparently.
Technical Architecture
Incoming HTTP requests terminate at Apache, where mod_rewrite maps human-readable market and category slugs (/nashville/photographers/spring-deals) to front-controller PHP routes while enforcing canonical redirects and static asset caching headers. The PHP application layer separates request routing, domain validation, and PDO database access so business rules stay decoupled from HTML templates.
MySQL serves as the authoritative store for vendor profiles, category taxonomies, deal schedules, and lead-routing logs. On the browser, modular JavaScript and jQuery bind progressive enhancements—asynchronous search facets, image uploads with preview cropping, and step-by-step form validation—to JSON endpoints exposed by PHP.
Flow: Browser (HTML/CSS + JavaScript/jQuery) → Apache HTTP Server (mod_rewrite + caching rules) → PHP Application & Validation Layer (PDO) → MySQL Relational Store & Scheduled Expiry Cron.
Technology Stack
| Category | Technology |
|---|---|
| Backend Runtime | Object-oriented PHP application layer with explicit request controllers and prepared statements |
| Relational Database | MySQL with composite regional/category indexes and transactional lead-ledger tables |
| Web Server & Routing | Apache HTTP Server using mod_rewrite for clean city/category/deal canonical URLs |
| Frontend Scripting | Modular JavaScript and jQuery for dynamic filtering, date-range checks, and AJAX validation |
| Search & Filtering | SQL faceted search across metro region, service category, budget band, and active promo status |
| Lead Funnel | Multi-step progressive inquiry modal with client-side jQuery checks and server verification |
| Media Pipeline | Server-side image resizing, MIME inspection, and cached gallery thumbnails |
| Scheduling & Expiry | Automated cron jobs expiring lapsed vendor deals and flagging stale inquiry threads |
| Security Controls | CSRF tokens, PDO parameterized queries, session hardening, and honeypot/rate-limit guards |
| Admin Back Office | Role-gated moderation queue for vendor verification, deal approval, and dispute resolution |
Engineering Trade-offs & Solutions
| Challenge | Architectural Solution |
|---|---|
| Duplicate lead submissions when shoppers double-click submit or reload confirmation pages | Wrapped lead creation in a MySQL transaction paired with a SHA-256 deduplication key derived from shopper email, vendor ID, and event date within a cooldown window, returning the original receipt cleanly on retries. |
| Expired vendor deals appearing in search listings between scheduled cron runs | Enforced time-window predicates directly inside every MySQL read query (starts_at <= NOW() AND expires_at > NOW()) while using cron solely for vendor reminder emails and archive rollups. |
| Slow browse queries when combining multi-region filters, category joins, and sort orders | Created covering composite indexes aligned with primary filter predicates and denormalized an active_deals_count summary column updated transactionally when promotions publish or expire. |
| Heavy vendor portfolio uploads bloating page weight on mobile connections | Implemented server-side PHP image normalization on upload to generate WebP/JPEG derivatives at fixed card and lightbox dimensions, served with Apache far-future Expires headers. |
| Automated spam polluting vendor inboxes and eroding platform trust | Added layered PHP request scoring—honeypot fields, minimum form-dwell checks, rate limits per IP subnet, and disposable-domain filtering—quarantining suspicious traffic without hurting conversion for real planners. |
Security & Reliability
All database interactions execute through PDO prepared statements with strict type binding, eliminating SQL injection vectors across complex search filters. State-changing forms inside both the buyer inquiry funnel and the vendor portal validate per-session CSRF tokens, while uploaded portfolio images undergo server-side MIME verification and re-encoding to strip embedded payloads.
Administrative and vendor sessions use HttpOnly, Secure, and SameSite cookie flags with automatic privilege re-verification before billing or payout configuration changes. Daily automated MySQL snapshots paired with transaction-safe lead ledgers ensure inquiry histories remain auditable during billing disputes.
Performance & Scale
Event browsing spikes sharply on evenings and weekends, creating read-heavy bursts across regional landing pages. Apache serves compressed static bundles (mod_deflate) with aggressive browser caching, while PHP opcache keeps compiled bytecode resident in memory.
On the database tier, separating read-heavy marketplace catalog queries from write-heavy lead-logging transactions prevents lock contention during promotional campaigns. Asynchronous AJAX filtering updates only the deal grid markup rather than re-rendering entire page chrome, keeping browse latency snappy even over congested mobile networks.
Operational Outcomes
Consolidating promotional discovery and lead intake into one structured platform gave regional event vendors predictable, date-qualified inquiries instead of vague price-shopping emails. Blackout calendars and automatic deal expiration eliminated dead-end outreach over lapsed packages, raising confidence on both sides of the marketplace.
For platform operators, the PHP, MySQL, and Apache architecture delivered a transparent, low-maintenance operational footprint—capable of spinning up new metro markets through configuration and clean URL routing without redeploying application infrastructure.