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());
}