What It Is
A complete, professional-grade web application for managing every aspect of an automotive repair shop business.
- Technology: PHP + MySQL (no frameworks, pure simplicity)
- Size: 24 files, 11 functional pages, 5,500+ lines of code
- Package: 66 KB compressed, ready to deploy
- Setup: 10 minutes from zero to production
- Cost: Free (just hosting ~$10/month)
Replaces: $2,460/year in separate software subscriptions.
Core Modules (8 Systems)
Customer Management
Store contacts, link to vehicles, track history, quick search.
Vehicle Tracking
Smart dropdowns (250+ models), VIN/mileage, service links.
Work Orders
Auto-gen numbers (WO-YYYY-XXXXX), labor/parts breakdown, status tracking.
Invoice Management
Line items, auto-calc tax/totals (INV-YYYY-XXXXX), payment tracking.
Tire Quotes
Size/brand/model, pricing breakdown (TQ-YYYY-XXXXX), validity tracking.
Accounting System
Income + Expenses (13 categories), P&L reports, auto-gen numbers.
Phone Monitoring
SIP integration, auto-popup with customer info, call history logging.
Dashboard
Real-time stats, financial summary (revenue/expenses/profit), quick links.
Database (11 Tables)
customers— Contact info, email, phone, addressvehicles— Year/make/model (smart dropdowns), VIN, mileage, colorwork_orders— Service jobs, labor/parts costs, status trackinginvoices+invoice_items— Billing headers + line itemstire_quotes— Tire quotations with pricing breakdownexpense_categories+expenses— 13 pre-configured categories + trackingother_income— Non-invoice income (equipment sales, rebates)call_logs— Phone call history with timestamps + notessip_settings— Phone system configuration
Design: Foreign keys, cascade deletes, prepared statements (SQL injection proof).
Accounting & Finances
Complete financial management with automatic calculations and professional reports.
- Income Tracking: Auto from paid invoices + manual other income (INC-YYYY-XXXXX)
- Expense Management: 13 categories (Parts, Rent, Payroll, Equipment, Insurance, Marketing, Office, Vehicles, Services, Maintenance, Licenses, Taxes, Other)
- Auto-generated numbers: EXP-YYYY-XXXXX for every expense
- Reports: Profit & Loss statements, category breakdowns, date range filtering
- Dashboard integration: Monthly revenue (green), expenses (red), profit (blue/gray)
Metrics: Total income, total expenses, net profit/loss, profit margin %, expenses by category.
Use case: Tax-ready reports, investor presentations, budget control, trend analysis.
Phone Call Monitoring (SIP Integration)
Real-time call monitoring with automatic customer lookup via SIP/VoIP integration.
- Auto-popup: When phone rings → shows customer name, vehicles, last service
- SIP support: Asterisk/FreePBX (AMI), 3CX (HTTP), Twilio (webhook), Generic webhook
- Customer matching: Auto-match by caller ID (last 10 digits)
- Call logging: Timestamp, duration, status (answered/missed/voicemail), direction (in/out)
- Call notes: Track conversation details + follow-ups
- Phone lookup: Search any number → instant customer + vehicle + service history
Stats dashboard: Today's calls, missed calls, avg duration, SIP status.
Example: Customer calls → Popup shows "John Doe - 2018 Toyota Camry - Last service: Oil change Sept 15" → Answer: "Hi John! About your Camry?" → 10 seconds vs. 3 minutes searching.
Automation & Smart Features
- Auto-generated numbers: WO/INV/TQ/EXP/INC-YYYY-XXXXX (year-based sequences)
- Real-time calculations: Work order totals, invoice tax/subtotals, tire quote pricing, financial profit/loss
- Smart matching: Phone → Customer, Customer → Vehicles, Invoice → Work Orders
- Status tracking: Work orders (Pending → In Progress → Completed), Quotes (Pending/Accepted/Rejected/Expired)
- Caller ID recognition: Auto-match last 10 digits, handles (555) 123-4567 or 5551234567
- Smart dropdowns: Year → Make → Model cascading (250+ models pre-loaded)
Architecture & Tech Stack
Security:
- SQL injection prevention (prepared statements everywhere)
- XSS protection (htmlspecialchars on all outputs)
- Input sanitization (clean_input function)
- Safe delete confirmations
APIs:
phone_lookup.php— RESTful JSON endpoint for customer lookupsip_webhook.php— Receives calls from PBX systems (POST/GET)check_incoming_calls.php— Real-time poller (5-second intervals)
Real-World Use Cases
📞 Customer Calls About Service
Before: "Hello?" → Customer explains → Search database → Ask about vehicle → Look up history → 3 minutes wasted
After: Popup shows customer + vehicle + last service → "Hi John! About your Camry?" → 10 seconds, professional impression
💰 Monthly Financial Review
Before: Export from 3 systems → Import to Excel → Manual calculations → 2 hours/month
After: Accounting → Reports → Select date range → Print P&L → 2 minutes
🚗 Customer Returns for Service
Before: Search customer → Find vehicles → Check history → Open work orders → multiple clicks, scattered info
After: Customers page → Click name → See everything (vehicles, work orders, invoices, calls) → one screen, complete context
Business Benefits
Operational Efficiency
- Single system for everything
- No paper — all digital records
- Quick searches — find anything instantly
- Complete history — never lose information
- Time savings — automation reduces manual work
Financial Management
- Know your numbers — real-time profit/loss
- Track every dollar — income and expenses
- Tax ready — professional reports
- Budget control — see spending by category
- Better decisions — data-driven insights
Customer Service
- Professional image — greet by name
- Faster service — instant history lookup
- No mistakes — accurate vehicle info
- Follow-up — track missed calls
- Trust building — customers feel remembered
Growth & Scalability
- Track trends — see business patterns
- Identify opportunities — profitable services
- Improve efficiency — find bottlenecks
- Professional reports — for investors/lenders
- Multi-location ready — can scale up
Installation (10 Minutes)
- Extract auto-shop.zip to web server directory
- Create MySQL database:
intersysop-dev-mechanic-shop - Import database.sql via phpMyAdmin or CLI
- Configure includes/config.php:
= "localhost"; = "your_username"; = "your_password"; = "intersysop-dev-mechanic-shop"; - Access http://localhost/auto-shop/ or http://yourdomain.com/auto-shop/
- Start using! Add customers → vehicles → work orders → invoices
Optional: Configure phone system (Accounting → Phone Calls → SIP Setup)
Sane Defaults & Best Practices
- Document numbers: Auto-generated yearly sequences (WO-2025-00001, INV-2025-00001)
- Tax rate: 8.5% default (easily changed in invoice page)
- Expense categories: 13 pre-configured (Parts, Rent, Payroll, Equipment, etc.)
- Phone matching: Last 10 digits, handles any format
- Call polling: Every 5 seconds when SIP enabled
- Popup timeout: 30 seconds auto-close
- Vehicle dropdowns: 250+ models from 50+ manufacturers
- Date formats: YYYY-MM-DD (database), "Mon DD, YYYY" (display)
Backup strategy: Daily database exports, weekly full backups recommended.
Documentation (8 Comprehensive Guides)
README.md— Complete system documentation with usage examplesQUICK_START.md— 5-minute installation guideFEATURES.md— Complete feature overview with technical specsUPDATE_NOTES.md— Vehicle dropdown system changelogACCOUNTING_GUIDE.md— Financial system manual (15 pages)ACCOUNTING_SYSTEM_ADDED.md— What's new in accounting modulePHONE_SYSTEM_GUIDE.md— SIP integration manual with PBX configsPHONE_SYSTEM_ADDED.md— What's new in phone monitoring
Total documentation: ~40 pages of comprehensive guides, setup instructions, and troubleshooting.
Perfect For
Shop Types:
- Independent auto repair shops
- Small to medium automotive businesses (1-20 employees)
- Mobile mechanics
- Tire shops
- Quick lube services
- Multi-bay service centers
- Fleet maintenance operations
- Auto body shops
- Specialty repair shops
Customer Base: 10-500+ customers, any number of vehicles
Tech Level: Basic PHP/MySQL knowledge helpful but not required
Quick Start Roadmap
- Day 1: Install system, add first 10 customers + vehicles
- Week 1: Create work orders, generate invoices, explore features
- Week 2: Set up accounting, record first expenses, configure categories
- Week 3: Enable phone system (manual logging or SIP integration)
- Month 1: Generate first P&L report, analyze call logs, optimize workflow
- Month 2+: Use data for business decisions, identify trends, grow revenue
Training time: 1-2 hours for staff to become proficient.
Common Traps (and exits)
- "Database import failed." → Check MySQL version (5.7+), charset (utf8mb4), user permissions
- "Phone popup not showing." → Enable SIP monitoring, check JavaScript console, verify webhook URL
- "Customer not matching by phone." → Check phone format consistency, ensure 10+ digits
- "Expenses not showing in reports." → Verify date range, check category assignment
- "Can't create invoice." → Ensure customer has at least one vehicle, check work order exists
- "Smart dropdowns not working." → Clear browser cache, verify vehicle_models table populated
Golden rule: Check browser console + PHP error logs for debugging.
ROI & Cost Analysis
This system replaces:
- Customer management software: ~$30/month
- Shop management system: ~$100/month
- Accounting software: ~$25/month
- Phone call tracking: ~$50/month
- Total: ~$205/month = $2,460/year
Your cost:
- One-time setup: ~2 hours labor
- Web hosting: ~$10/month ($120/year)
- Annual savings: ~$2,340
Time savings: ~5 hours/week in reduced admin work = $10,000+/year in labor savings
Total ROI: $12,000+ in first year