PHPackages                             wyrihaximus/to-coroutine-or-not-to-coroutine - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wyrihaximus/to-coroutine-or-not-to-coroutine

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wyrihaximus/to-coroutine-or-not-to-coroutine
============================================

To coroutine or not to coroutine

1.0.1(7y ago)24.1k[2 PRs](https://github.com/WyriHaximus/php-to-coroutine-or-not-to-coroutine/pulls)MITPHPPHP ^7.2

Since Sep 22Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/php-to-coroutine-or-not-to-coroutine)[ Packagist](https://packagist.org/packages/wyrihaximus/to-coroutine-or-not-to-coroutine)[ RSS](/packages/wyrihaximus-to-coroutine-or-not-to-coroutine/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

To coroutine or not to coroutine
================================

[](#to-coroutine-or-not-to-coroutine)

Bare function using annotations to decide if the given function should be run in a coroutine

[![Build Status](https://camo.githubusercontent.com/14797d2000d1ac768ed422bd3164b819a3841ba53bfdd94f5a980b3edd68294c/68747470733a2f2f7472617669732d63692e636f6d2f57797269486178696d75732f7068702d746f2d636f726f7574696e652d6f722d6e6f742d746f2d636f726f7574696e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/WyriHaximus/php-to-coroutine-or-not-to-coroutine)[![Latest Stable Version](https://camo.githubusercontent.com/1a8817a0d60c252765039bd8fb55d4bbdec854bc625f39f88101d884caa0b7ee/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f746f2d636f726f7574696e652d6f722d6e6f742d746f2d636f726f7574696e652f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/to-coroutine-or-not-to-coroutine)[![Total Downloads](https://camo.githubusercontent.com/971ad13c65fc1047d244aa63594b8f50a56229a06bceee7b842bdfc599a18954/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f746f2d636f726f7574696e652d6f722d6e6f742d746f2d636f726f7574696e652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/to-coroutine-or-not-to-coroutine)[![Code Coverage](https://camo.githubusercontent.com/4f4277e3e9e4dd6dc7868d9f83b2ef66f329fef222bd2f6b0b3a1c45faaa6852/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f7068702d746f2d636f726f7574696e652d6f722d6e6f742d746f2d636f726f7574696e652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/php-to-coroutine-or-not-to-coroutine/?branch=master)[![License](https://camo.githubusercontent.com/fa7889743e064c66bddf2988e1baf9b63ac8dec3f46295eb8074776373a74565/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f746f2d636f726f7574696e652d6f722d6e6f742d746f2d636f726f7574696e652f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/to-coroutine-or-not-to-coroutine)[![PHP 7 ready](https://camo.githubusercontent.com/42718cddeb81248571079e9a79343ed0f98fbc659d6f1cf0bbf642e84f6d6cbf/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f57797269486178696d75732f72656163747068702d687474702d6d6964646c65776172652d636c6561722d626f64792f62616467652e737667)](https://travis-ci.org/WyriHaximus/reactphp-http-middleware-clear-body)

Install
=======

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/to-coroutine-or-not-to-coroutine

```

License
=======

[](#license)

Copyright (c) 2018 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance43

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Total

2

Last Release

2687d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (19 commits)")[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")

---

Tags

coroutinehacktoberfestphpphp72recoilrecoilphpto-be-or-not-to-be

### Embed Badge

![Health badge](/badges/wyrihaximus-to-coroutine-or-not-to-coroutine/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-to-coroutine-or-not-to-coroutine/health.svg)](https://phpackages.com/packages/wyrihaximus-to-coroutine-or-not-to-coroutine)
```

###  Alternatives

[kzykhys/parallel

Simple multitasking library

93334.1k4](/packages/kzykhys-parallel)[tiny-pixel/acorn-block-templates

Block templates for Sage 10

191.2k](/packages/tiny-pixel-acorn-block-templates)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
