Search by

cognesy / instructor-sandbox

ddebowczyk

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

Package info

github.com/cognesy/instructor-sandbox

Homepage

Issues

pkg:composer/cognesy/instructor-sandbox

Statistics

Installs: 301

Dependents: 5

Suggesters: 0

Stars: 0

v2.9.5 2026-08-30 01:03 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: