Download the PHP package alfallouji/php_multithread without Composer
On this page you can find all versions of the php package alfallouji/php_multithread. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alfallouji/php_multithread
More information about alfallouji/php_multithread
Files in alfallouji/php_multithread
Package php_multithread
Short Description iPHP library to handle multi-threading
License
Informations about the package php_multithread
Authors & contact
Al-Fallouji Bashar
Documentation and download
Latest version is available on github at :
License
This Code is released under the GNU LGPL
Please do not change the header of the file(s).
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
Description
This library provides a lightweight / simple PHP Oriented Object classe to handle multi-threading. Check the sample folder for examples on how to use it. This library requires to have the pcntl (http://php.net/pcntl) extension installed and it will only work with unix distributions.
Setup
You can use composer to use this library.
Usage
This client does not rely or depend on any framework and it should be fairly easy to integrate with your own code. You can use composer or your own custom autoloader.
The sample folder contains example on how to use this library.
Example
Multi-threading a simple task
Will provide following output :