A B2B diagnostics catalog and quotation workflow platform built with procedural PHP, MySQL, vanilla JavaScript, and CSS.
This project started as a traditional e-commerce catalog and was refocused into an RFQ-first commercial workflow for medical and diagnostics sales, where customers browse products, submit quotation requests, and receive tracked quotation responses through an admin back office.
This is not just a basic CRUD catalog.
It includes a stronger business workflow layer with:
- customer authentication and session hardening
- RFQ cart and quotation request submission
- admin quotation management and quote sending
- quote approval / rejection workflow
- quote revision history and quote document snapshots
- RFQ timeline and status history
- audit logging for admin activity
- B2B company accounts and multi-contact structure
- company billing / shipping address profiles
- supplier metadata and commercial product fields
- admin pagination, filtering, and analytics dashboards
- GitHub workflows, issue templates, contribution docs, and repo governance files
- signup / login / logout
- product catalog with search, filters, and product detail pages
- RFQ cart workflow
- quotation request submission
- inquiry form flow
- customer RFQ history
- stored quotation document access
- quote approval and rejection actions
- customer-visible RFQ timeline
- company profile and saved address visibility
- executive RFQ dashboard
- RFQ pipeline tracking
- quote sending and quote revision snapshots
- inquiry tracking
- product management
- supplier/commercial product metadata
- user management with role/status controls
- company accounts overview
- company addresses overview
- audit log foundation across major admin actions
- admin filtering and pagination across key modules
Product discovery
-> RFQ cart
-> RFQ submission
-> Admin review
-> Quotation issued
-> Quote revisions (if needed)
-> Customer approves or rejects
-> RFQ timeline + audit trace remain visible
This makes the repo much closer to a B2B sales operations platform than a simple storefront.
- Backend: Procedural PHP with PDO
- Database: MySQL
- Frontend: HTML, CSS, Vanilla JavaScript
- Email: native
mail()integration in current implementation - Repo quality: GitHub Actions, PR template, issue templates, CODEOWNERS, SECURITY.md, CONTRIBUTING.md
The project now includes stronger business-oriented tables such as:
audit_logsquote_status_historyquote_revisionsquote_revision_itemsquote_documentscompany_accountscompany_account_contactscompany_account_addressessuppliers- password reset support tables
For cleaner maintenance and recruiter-facing repo presentation, the schema upgrade path is now also bundled into a single database_patch_all.sql file for existing databases.
Recent repo upgrades include:
- cart item ownership checks
- safer password reset token handling
- local DB config pattern instead of committing credentials directly
- product search fulltext support with fallback logic
- session hardening and secure session regeneration
- admin activity audit logging
- inactive-user login blocking
- role/status-aware admin user controls
The admin landing page is positioned as an RFQ operations dashboard and includes:
- total RFQs and stage counts
- quoted value snapshot
- response health metrics
- RFQ trend visibility
- watchlists for stale or expiring work
- top requested products
- company account activity visibility
- inquiry and stock-risk awareness
config/ Database and configuration files
includes/ Shared helpers, session, layout utilities
actions/ Customer-side handlers
admin/ Admin pages
admin_actions/ Admin workflow handlers
pages/ Customer-facing pages
assets/ Frontend assets
uploads/ Uploaded product / quote documents
.github/ Workflows, templates, repo governance
database.sql Full base schema
database_patch_all.sql Consolidated upgrade bundle for existing databases
- Create a MySQL database.
- Import
database.sql. - Copy
config/db.local.example.phptoconfig/db.local.phpif present in your branch, then update credentials. - Ensure writable upload folders where needed.
- Point your local server or cPanel document root at the project.
- Log in with your seeded admin account if your imported schema includes it.
If you are upgrading an older existing database instead of doing a fresh import, use database_patch_all.sql as the single consolidated upgrade bundle.
php mysql procedural-php b2b ecommerce rfq quotation inventory admin-dashboard crm business-software cpanel
This repository includes:
- PHP lint workflow via GitHub Actions
- markdown/link hygiene workflow
- pull request template
- issue templates
- CODEOWNERS
- SECURITY.md
- CONTRIBUTING.md
These help the project present as a more mature and maintainable engineering repo.
The strongest way to present this project is as:
A procedural PHP + MySQL B2B diagnostics RFQ platform with quotation workflows, auditability, company accounts, and admin operations tooling.
That framing is much stronger than calling it only a basic e-commerce site.
- The current platform is positioned RFQ-first, not as a pure online card-checkout storefront.
- Some data and assets in the repo are placeholders for demonstration and portfolio purposes.
- Email delivery uses the native PHP mail layer in the current implementation and can be upgraded to SMTP later.
Good next upgrades for portfolio value:
- export/reporting layer
- order conversion after quote approval
- granular permissions matrix
- richer supplier management
- scheduled reminders / cron workflows
- PDF generation service hardening
- admin audit log viewer UI
This repository is presented as a portfolio and internal business system showcase. Review and adapt usage based on your own deployment and commercial needs.