All Projects → xujiajun → tast-process

xujiajun / tast-process

Licence: MIT license
An extension providing multi process for PHP 7

Programming Languages

c
50402 projects - #5 most used programming language
M4
1887 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tast-process

Cphalcon
High performance, full-stack PHP framework delivered as a C extension.
Stars: ✭ 10,534 (+38914.81%)
Mutual labels:  php-extension
php-bencode
C++ PHP extension which can boost the process of encoding and decoding of Bencode.
Stars: ✭ 16 (-40.74%)
Mutual labels:  php-extension
zephir-docs
Zephir Documentation and website
Stars: ✭ 62 (+129.63%)
Mutual labels:  php-extension
Ycdatabase
The lightest php database framework written in c language, built in php extension, for mysql
Stars: ✭ 130 (+381.48%)
Mutual labels:  php-extension
xray
X-Ray - PHP Engine compiler hook API (new)
Stars: ✭ 19 (-29.63%)
Mutual labels:  php-extension
php-mustache
Mustache PHP Extension
Stars: ✭ 55 (+103.7%)
Mutual labels:  php-extension
Php Rdkafka
Production-ready, stable Kafka client for PHP
Stars: ✭ 1,703 (+6207.41%)
Mutual labels:  php-extension
learn-computer
PHP函数源码分析、计算机相关知识
Stars: ✭ 13 (-51.85%)
Mutual labels:  php-extension
nanobox-engine-php
Engine for running PHP apps on Nanobox
Stars: ✭ 20 (-25.93%)
Mutual labels:  php-extension
php-to-zephir
Convert PHP 7 files to Zephir zep files and create a native PHP extension
Stars: ✭ 25 (-7.41%)
Mutual labels:  php-extension
Pht
A new threading extension for PHP
Stars: ✭ 175 (+548.15%)
Mutual labels:  php-extension
Php V8
PHP extension for V8 JavaScript engine
Stars: ✭ 197 (+629.63%)
Mutual labels:  php-extension
php-document-creator
a document creator for php extension.一个用于生成PHP扩展文档的工具
Stars: ✭ 25 (-7.41%)
Mutual labels:  php-extension
Php Zephir Parser
The Zephir Parser delivered as a C extension for the PHP language.
Stars: ✭ 129 (+377.78%)
Mutual labels:  php-extension
Tensor
A library and extension that provides objects for scientific computing in PHP.
Stars: ✭ 146 (+440.74%)
Mutual labels:  php-extension
V8js
V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
Stars: ✭ 1,659 (+6044.44%)
Mutual labels:  php-extension
php-smartcrop-extension
smartcrop implementation in php extension
Stars: ✭ 17 (-37.04%)
Mutual labels:  php-extension
xhprof
PHP7/PHP8 support
Stars: ✭ 877 (+3148.15%)
Mutual labels:  php-extension
skeleton-php-ext
Skeleton project for PHP extension (written in C)
Stars: ✭ 24 (-11.11%)
Mutual labels:  php-extension
pdo sqlcipher
SQLCipher PDO (PHP Data Objects) driver
Stars: ✭ 17 (-37.04%)
Mutual labels:  php-extension

tast-process

An extension providing multi process for PHP 7

Requirements

  • PHP7.0+

Installation

git clone https://github.com/xujiajun/tast-process.git
cd tast-process
phpize
./configure
make && make install

Quick Start

<?php

if (!extension_loaded('tast_process')) {
    echo "tast_process extension is not enabled\n";
    exit(1);
}

function func1()
{
    echo "call func1.start".PHP_EOL;
    sleep(5);
    echo "call func1.end".PHP_EOL;
}
function func2()
{
    echo "call func2.start".PHP_EOL;
    sleep(5);
    echo "call func2.end".PHP_EOL;
}
function func3()
{
    echo "call func3.start".PHP_EOL;
    sleep(5);
    echo "call func3.end".PHP_EOL;
}

// multi process 
tast_process(['func1','func2','func3'],3);

License

MIT Licensed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].