1. Go to this page and download the library: Download elvenspellmaker/pipesys library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
elvenspellmaker / pipesys example snippets
$input = (yield new ReadIntent);
yield new OutputIntent('Hello World!');
yield new OutputIntent('Hello World!', IOConstants::IO_STDERR);
lvenSpellmaker\PipeSys as PS;
use ElvenSpellmaker\PipeSys\Command as Command;
$connector = new Command\StandardConnector;
$c = new PS\Scheduler($connector);
$c->addCommand(new Command\ChattyYes);
$c->addCommand(new Command\Head));
$c->run();
Output:
Yes
I
Am
Chatty
Yes
I
Am
Chatty
Yes
I
lvenSpellmaker\PipeSys as PS;
use ElvenSpellmaker\PipeSys\Command as Command;
$connector = new Command\StandardConnector;
$c = new PS\Scheduler($connector);
$c->addCommand(new Command\ChattyYes);
$c->addCommand(new Command\Grep('Chatty'));
$c->addCommand(new Command\Head));
$c->run();
Output:
Chatty
Chatty
Chatty
Chatty
Chatty
Chatty
Chatty
Chatty
Chatty
Chatty
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.