Business & Operations

Avela - Clinic Management Software

Source code included

Web-based medical appointment system for patients, doctors and clinic administrators

Built by Rafe Uddaraj Updated 12 Oct 2026 32,841 lines of code

Open live demo Built withOpenAI Codex

Why Avela - Clinic Management Software

What makes it better
than the alternatives

  1. 01

    Three-role architecture

    Separate patient, doctor and administrator interfaces with scoped data access and role-specific bootstraps

  2. 02

    Session-based booking with capacity control

    InnoDB row locks prevent overbooking; foreign keys cascade appointment deletions automatically

  3. 03

    International phone validation

    Integrates intl-tel-input library with 40+ language translations and libphonenumber-for-php backend validation

  4. 04

    Docker Compose deployment

    Single-command setup with MariaDB health checks, environment-based configuration and automated schema initialization

  5. 05

    Hardened authentication flow

    Password hashing with password_hash/verify, CSRF tokens on all mutations, and session regeneration on login

Authentication & Registration

  • Public login page with email/password authentication
  • Patient self-registration with phone number validation
  • Password hashing using PHP password_hash (bcrypt)
  • CSRF token validation on all POST requests
  • Session regeneration and secure cookie flags

Patient Portal

  • Dashboard showing upcoming appointments and statistics
  • Doctor directory with search and specialty filtering
  • Session browsing and appointment booking
  • Appointment cancellation with confirmation dialogs
  • Profile settings with password change and account deletion

Doctor Portal

  • Dashboard with appointment counts and patient lists
  • Session creation and management (date
  • time
  • capacity)
  • Appointment viewing filtered by doctor's own sessions
  • Session cancellation with cascade deletion of bookings
  • Profile editing and password management

Administrator Portal

  • Full clinic dashboard with system-wide statistics
  • Doctor account creation
  • editing and removal
  • Patient directory with search and filtering
  • Session management across all doctors
  • Appointment oversight and cancellation capabilities

Session & Booking Engine

  • Session scheduling with date
  • time and patient capacity
  • InnoDB FOR UPDATE row locks during booking to prevent races
  • Capacity validation before confirming appointments
  • Foreign key constraints cascade session deletions to bookings
  • Transaction-wrapped multi-table updates for consistency

Database Layer

  • MariaDB 11.4 with InnoDB storage engine
  • Prepared statements for all user-supplied SQL values
  • Foreign keys between webuser
  • doctor
  • schedule and appointment tables
  • Health check queries in Docker Compose startup
  • Schema and seed SQL files for fresh installations

Deployment & Configuration

  • Docker Compose with web and db services
  • Environment variable configuration for database and passwords
  • Automated schema initialization on first container start
  • CLI initialize.php script sets admin and demo passwords
  • Apache with mod_rewrite for extensionless URLs

Security & Testing

  • Python authorization test suite verifies role boundaries
  • Smoke tests for public routes and signed-out restrictions
  • CSRF rejection tests for all mutation endpoints
  • Role guard checks precede all code in protected routes
  • No passwords in seed SQL or browser hints

Quality report

Manually reviewed

92/ 100

Automated audit score

✓ Passed the audit

Passed the audit and a manual review.
Audit run: 12 Oct 2026
Reviewed by Vibe96 staff, Dubai.

Security96
Code structure72
Docs & completeness100
Dependency health85
Build & deploy95
Reviewer notes (3 minor)

Database access is parameterized; schema lacks indexes on several foreign keys; dependencies mostly current; minor outdated packages but no critical vulnerabilities; moderate duplication across role-specific pages; some oversized files and hard-coded values. None of these stop the software from working; the developer has been told and improvements come in a future update.

Versions & updates

1.0.0
First release12 Oct 2026✓ Reviewed & audited

No updates yet. New versions appear here with a changelog.
Buyers receive updates free for 1 year.

What you get

  • </>Full source codeThe complete audited source, delivered as a download from your account. No obfuscation.
  • ▤DocumentationSetup guide, architecture notes, CLAUDE.md and AGENTS.md.
  • ↻One year of updatesEvery new version the builder publishes, free for 12 months.
  • ♧30 days of supportInstallation and defect support through Vibe96 tickets.
$150Single-site licence Details