DeLille Demo

Machine Object API Demo

Built as a clear starter for MACHINE_OB.php usage.

Purpose

Human-readable starter for MACHINE_OB.php

This folder is intentionally simple. It demonstrates how to work with Machine, MachineRepository, Accessory, and AccessoryRepository without complex frameworks.

require_once __DIR__ . '/src/bootstrap.php';

$machineRepo = machine_repo();
$accessoryRepo = attachment_repo();

$machine = $machineRepo->find('P40.17');
if ($machine) {
    echo $machine->max_capacity();
    print_r($machine->attachments());
}