2025-08-17 18:48:11 +02:00
2025-08-17 18:48:11 +02:00
2025-08-16 19:20:44 +02:00
2025-08-16 21:55:16 +02:00
2025-08-16 21:48:01 +02:00
2025-08-16 21:55:16 +02:00
2025-08-17 18:48:11 +02:00

NIH PHP Command Builder

Simple command builder inspired by rust's std library.

<?php

use Nih\CommandBuilder\Command;
use Nih\CommandBuilder\Stdio;

require_once __DIR__ . '/vendor/autoload.php';

$child = (new Command('cat'))
    ->stdin(Stdio::piped())
    ->stdout(Stdio::piped())
    ->spawn();

$child->stdin?->write('Hello, this is pretty cool.');

$output = $child->output();

echo $output->stdout;

// Hello, this is pretty cool.
Description
A (somewhat) simple command builder inspired by rust's std library
Readme MIT 70 KiB
Languages
PHP 100%