> ## Documentation Index
> Fetch the complete documentation index at: https://docs.instructorphp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox api host echo

## Overview

Minimal host driver API check.

## Example

```php theme={null}
<?php
require 'examples/boot.php';

use Cognesy\Sandbox\Config\ExecutionPolicy;
use Cognesy\Sandbox\Sandbox;

$policy = ExecutionPolicy::in(__DIR__);

$result = Sandbox::host($policy)->execute(['echo', 'hello from host sandbox']);

assert($result->exitCode() === 0, 'Host echo should exit with code 0');
echo "Exit: {$result->exitCode()}\n";
echo $result->stdout();
?>
```
