Files
nih-php-command-builder/examples/hello-world.php

14 lines
207 B
PHP

<?php
use Nih\CommandBuilder\Command;
require_once __DIR__ . '/../vendor/autoload.php';
$output = (new Command('echo'))
->arg('Hello, World!')
->output();
echo $output->stdout;
// Hello, World!