2017 © Pedro Peláez
 

library fifo

a php posix fifo (named pipes) wrapper to use for ipc

image

pbergman/fifo

a php posix fifo (named pipes) wrapper to use for ipc

  • Tuesday, May 31, 2016
  • by pbergman
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2,148 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 32 % Grown

The README.md

FIFO (named pipes)

A simple wrapper around posix_mkfifo that can send signals and mixed data for ipc. Difference between signals and data is that data will verified and signal only will return the header (with pid and type) and the signal and is basically a stripped version of data to send integers., (*1)

usage:

$object = new \stdClass();
$object->foo = 'bar';
$object->bar = 'foo';

$transport = new \PBergman\FIFO\Transport(posix_getpid());
$transport->write($object);
$transport->signal(SIGINT);

var_dump($transport->read()) // Will return $object;
var_dump($transport->read()) // Will return SIGINT;
var_dump($transport->read()) // Will return false;

The Versions

31/05 2016

dev-master

9999999-dev

a php posix fifo (named pipes) wrapper to use for ipc

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Philip Bergman

31/05 2016

1.0.4

1.0.4.0

a php posix fifo (named pipes) wrapper to use for ipc

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Philip Bergman

10/09 2015

1.0.2

1.0.2.0

a php posix fifo (named pipes) wrapper to use for ipc

  Sources   Download

MIT

by Philip Bergman

10/09 2015

1.0.1

1.0.1.0

a php posix fifo (named pipes) wrapper to use for ipc

  Sources   Download

MIT

by Philip Bergman

10/09 2015

1.0.0

1.0.0.0

a posix fifo wrapper to use for ipc

  Sources   Download

MIT

by Philip Bergman