Medos Booking Docs
Install

Core PHP

Drop the widget into a plain PHP page.

Zero-framework integration. Works in any PHP app — Symfony, CodeIgniter, plain PHP, or something home-grown.

index.php
<?php $medosApiKey = getenv('MEDOS_API_KEY') ?: 'mk_your_publishable_key'; ?>
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Book an appointment</title>
    <script src="https://widgets.medos.one/v2/unified.js"></script>
  </head>
  <body>
    <h1>Book an appointment</h1>
    <div id="medos-booking" style="min-height: 600px"></div>

    <script>
      MedosBooking.init({
        apiKey: <?= json_encode($medosApiKey) ?>,
        mode: "inline",
        containerId: "medos-booking",
        theme: "default",
      });
    </script>
  </body>
</html>

json_encode() guarantees the value is a valid JavaScript string literal even if the key contains characters that would otherwise break the script.