Download the PHP package elvenspellmaker/pipesys without Composer

On this page you can find all versions of the php package elvenspellmaker/pipesys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pipesys

PipeSys Build Status

PipeSys (said Pipes) is a very basic system of pipes implemented in PHP.

Requirements

How it works

The way PipeSys works is by having a chain of commands which are joined together by the Scheduler to give the effect of pipes by chaining the output of one to the input of another. A Scheduler can have many commands added to it and all must be an instance of AbstractCommand.

Commands are special classes which have a getCommand method which should return a Generator, i.e. it should have yield statements in it. When a command wants to read it should use a coroutine call like:

By yielding a ReadIntent object the command knows it wants to read in order to continue. When data is available for the command it it sent using the send() generator method. $input will pick up this sent value and the generator will resume.

When a command wants to write it should yield an OutputIntent signalling that it has the intention to output something:

The output data can be anything you like and may even be sent to another channel, such as StdErr:

Commands at the start or end have access to the stdin or stdout respectively of the Scheduler which may correspond to the stdin and stdout of the system. (Provided by the StdIn and StdOut classes.)

The commands are connected by a ConnectorInterface implementing class, which allows you to customise and fine-tune the connection behaviour. A default conntector called StandardConnector is provided which will connect the first command's input to the StdIn of the system, the last command's output to the StdOut of the system, all other commands link their outputs and inputs in a chain (like UNIX pipes) and all commands get connected to the StdErr channel too.

The Scheduler uses coöperative scheduling, because PHP is single process and single threaded there is no way to implement preëmptive scheduling without an extension.

When a stdin method is exhausted it should return an EOF object.The EOF signals that the end of the stream (EOF = End Of File) has been reached. Commands that read will most likely want to return once receiving this as they usually can't continue any further without anything to read.

Terminating commands should yield null to tell the system they can no longer function any more.

Example Code

Examples of simple command chains are shown below.

ChattyYes is similar to the Unix Yes command except instead of y being output it outputs:

over and over.

The above chain shows that ChattyYes is connected to stdIn and its output is connected to head which will print the first 10 lines it receives.

The PHP code for this is below:

The above chain shows that ChattyYes is connected to stdIn and it outputs to grep which is looking for the phrase "Chatty" and its output is connected to head which will print the first 10 lines it receives.

The PHP code for this is below:


All versions of pipesys with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package elvenspellmaker/pipesys contains the following files

Loading the files please wait ....