PHPackages                             rutek/swoole-polyfill - 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. rutek/swoole-polyfill

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

rutek/swoole-polyfill
=====================

Polyfill for basic Swoole methods which allows you to create scripts which will run both with and without Swoole

v1.0.0(6y ago)037GPL-3.0PHPPHP ^7.2CI passing

Since Oct 30Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/rutek/swoole-polyfill)[ Packagist](https://packagist.org/packages/rutek/swoole-polyfill)[ RSS](/packages/rutek-swoole-polyfill/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Swoole Polyfill
===============

[](#swoole-polyfill)

Polyfill for basic Swoole methods which allows you to create scripts which will run both with and without Swoole.

Currently contains polyfills for (version 4.1+):

- `\Swoole\Runtime::enableCoroutine()`
- `\Swoole\Coroutine\Scheduler` - `add` &amp; `start` functions

Feel free to create merge requests with more methods and classes! :)

Running tests
-------------

[](#running-tests)

You should do two types of tests:

- one with PHP 7.2+ which does not have Swoole extension
- one with PHP 7.2+ with Swoole extension

Why? First run will make sure that polyfills work properly and second one will tell you if your tests match behaviour of Swoole.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2384d ago

Major Versions

v0.0.1 → v1.0.02019-10-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c33cf4e40cbb46fc27154fa0801e689540ecdbda0326818c4bc6a45ecf0fa36?d=identicon)[lukasz\_rutkowski](/maintainers/lukasz_rutkowski)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![rutek](https://avatars.githubusercontent.com/u/1064745?v=4)](https://github.com/rutek "rutek (1 commits)")[![tc-rutek](https://avatars.githubusercontent.com/u/133372346?v=4)](https://github.com/tc-rutek "tc-rutek (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rutek-swoole-polyfill/health.svg)

```
[![Health](https://phpackages.com/badges/rutek-swoole-polyfill/health.svg)](https://phpackages.com/packages/rutek-swoole-polyfill)
```

PHPackages © 2026

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