2017 © Pedro Peláez
 

library pcntl

PCNTL helper methods

image

soneritics/pcntl

PCNTL helper methods

  • Monday, August 14, 2017
  • by soneritics
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

PCNTL

Build Status Coverage Status License, (*1)

by * @Soneritics - Jordi Jolink, (*2)

Introduction

Helper method for working with forks., (*3)

Minimum Requirements

  • PHP 7.1

Features

  • tbd
  • tbd

Example

The following PHP code is a minimal example of one of the possibilities of this library., (*4)

(new \PCNTL\ThreadStart)->startAndWait(
    (new \PCNTL\ThreadCollection)
        ->add(new ExampleClass('Test 1'))
        ->add(new ExampleClass('Test 2'))
        ->add(new ExampleClass('Test 3'))
        ->add(new ExampleClass('Test 4'))
        ->add(new ExampleClass('Test 5'))
);

Running multiple threads (forks), output will look like:, (*5)

Starting
Starting Test 1
Starting Test 2
Starting Test 3
Starting Test 5
Starting Test 4
Ended Test 1
Ended Test 3
Ended Test 5
Ended Test 2
Ended Test 4
Program is done.

The Versions

14/08 2017

dev-master

9999999-dev https://github.com/Soneritics/PCNTL

PCNTL helper methods

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

14/08 2017
14/08 2017