API
Create endpoints under api/ and call via URL such as /api/users.php or /api/ (using api/index.php).
API Example
<?php
require_once __DIR__ . '/../vendor/autoload.php';
header('Content-Type: application/json; charset=utf-8');
$db = composables('useDB')['connect']();
echo json_encode(['status' => 'ok']);