PHPackages                             ackintosh/snidel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ackintosh/snidel

ActiveLibrary

ackintosh/snidel
================

A multi-process container. It looks like multi-thread-ish.

0.13.0(7y ago)1041.2k↓100%8[1 PRs](https://github.com/ackintosh/snidel/pulls)MITPHPPHP &gt;=7.1.0CI failing

Since Sep 20Pushed 4y ago7 watchersCompare

[ Source](https://github.com/ackintosh/snidel)[ Packagist](https://packagist.org/packages/ackintosh/snidel)[ Docs](http://ackintosh.github.io/)[ RSS](/packages/ackintosh-snidel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (26)Used By (0)

Snidel
======

[](#snidel)

A multi-process container. Snidel makes it easier for all PHP developers to work with parallel processing *without any extensions*.

[![Latest Stable Version](https://camo.githubusercontent.com/5f66c8cb62c538efc7dab86d7b15e436b9920d05ffef6516f5b32cd7f06bb2c5/68747470733a2f2f706f7365722e707567782e6f72672f61636b696e746f73682f736e6964656c2f762f737461626c65)](https://packagist.org/packages/ackintosh/snidel) [![License](https://camo.githubusercontent.com/916569437623d107282fa06faf60b4d9600dd242730e95e9e03f9417eda65171/68747470733a2f2f706f7365722e707567782e6f72672f61636b696e746f73682f736e6964656c2f6c6963656e7365)](https://packagist.org/packages/ackintosh/snidel) [![Tests](https://github.com/ackintosh/snidel/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/ackintosh/snidel/actions/workflows/tests.yml) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/8e2d53af766ccf4a78129ae9f2340fcf0a89e240c747750ff9378332d37e1f5d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61636b696e746f73682f736e6964656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ackintosh/snidel/?branch=master) [![Coverage Status](https://camo.githubusercontent.com/e3103e2427ac3641522d5126fdc59c5fab7c2634215965194c7e5f2c2f7675d6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f61636b696e746f73682f736e6964656c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ackintosh/snidel?branch=master) [![Minimum PHP Version](https://camo.githubusercontent.com/dcd4b4aec2c1709157fa6a2c050f709d75cde9552a79cfff0b70a97fad7281ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

**Please consider [donating](https://github.com/sponsors/ackintosh) to this project's author, [Akihito Nakano](#author), to show your ❤️ and support.**

[Sponsor @ackintosh on GitHub Sponsors](https://github.com/sponsors/ackintosh)

What Snidel solves?
-------------------

[](#what-snidel-solves)

(en)

Not a few people, start their programming carrier with PHP, and go on. Parallel processing, they are not familiar with it, and may be a hurdle for them.

Or else, people who limited to develop with a language that is not PHP (e.g. A language that has superior feature for parallel processing). (It's me in past.)

To make parallel processing more easily and instinctively to them to use, I started developing Snidel.

Snidel can be one of your options when you are considering "How to do it parallelly?". It's an honer for me.

(ja)

PHPでプログラミングに入門して、PHPでキャリアを積み重ねているプログラマがある程度いると思います(私がそうです)。そのような方にとって並列処理は馴染みがなかったり、敷居の高さを感じるのではないでしょうか。

或いは諸事情によりPHP以外の言語(例えば、並列処理のための優れた機構を持った言語)を利用する事を制限されている中で開発を進めなければならない状況にある方もいらっしゃるでしょう(以前の私がそうでした)。

そのような方が、手軽に・直感的に並列処理を使って問題解決できることを目的として Snidel の開発をはじめました。

"この処理を並列に実行したいんだけどどうしよう？" といった場合に Snidel がみなさんの選択肢のひとつになれたら幸いです。

Installing Snidel via Composer
------------------------------

[](#installing-snidel-via-composer)

```
$ composer require ackintosh/snidel:~0.11.0

```

Architecture
------------

[](#architecture)

[![Master - Worker Architecture](images/0.8_pluggable_queue.png)](images/0.8_pluggable_queue.png)

Benefits
--------

[](#benefits)

It is also possible parallel processing via build-in functions (e.g. `exec`):

```
initialize_data_required_for_the_slow_jobs();

exec('php slow_job1.php &');
exec('php slow_job2.php &');
```

For the developers who feels "pain" with the above, Snidel can provides pretty good experience and will streamline their PHP programming.

We will walk through usage to show how Snidel melt parallel processing into your programming. The experience using Snidel should resolve your pain. Let's get started!

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
