cognesy/instructor-sandbox

Sandboxed command execution for PHP with multiple drivers (Host, Docker, Podman, Firejail, Bubblewrap)

Maintainers

Package info

github.com/cognesy/instructor-sandbox

Homepage

Issues

pkg:composer/cognesy/instructor-sandbox

Transparency log

Statistics

Installs: 39

Dependents: 5

Suggesters: 0

Stars: 0

v2.8.3 2026-07-20 12:02 UTC

This package is auto-updated.

Last update: 2026-08-25 20:08:02 UTC


README

Sandboxed command execution for PHP (host, Docker, Podman, Firejail, Bubblewrap).

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

$sandbox = Sandbox::host(ExecutionPolicy::in(__DIR__));
$result = $sandbox->execute(['php', '-v']);

echo $result->stdout();

More docs: