PHPackages                             imefisto/swoole-psr-kit - 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. [Framework](/categories/framework)
4. /
5. imefisto/swoole-psr-kit

ActiveLibrary[Framework](/categories/framework)

imefisto/swoole-psr-kit
=======================

A PSR-compliant toolkit for building Swoole HTTP/WebSocket servers with dependency management

1.1.0(1y ago)164MITPHPPHP ^8.1

Since Dec 21Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/imefisto/swoole-psr-kit)[ Packagist](https://packagist.org/packages/imefisto/swoole-psr-kit)[ RSS](/packages/imefisto-swoole-psr-kit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (8)Used By (0)

SwooleKit
=========

[](#swoolekit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4b08374776f591b7de979f4eb5ac1404b941a076616359936748b9bae486a780/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d65666973746f2f73776f6f6c652d7073722d6b69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/imefisto/swoole-psr-kit)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A PHP library providing clean interfaces and handlers for Swoole server implementation, with support for HTTP, WebSocket, and Worker management.

> ⚠️ **Alpha Release**: This project is currently in alpha stage (v2.x-alpha). The API may change significantly between versions. Version 2.x contains breaking changes from 1.x.

Version Information
-------------------

[](#version-information)

- **Current**: `2.0.0-alpha.1` (Alpha - Breaking changes from 1.x)
- **Previous**: `1.1.0` (Legacy - Not recommended for new projects)

### Migration from 1.x

[](#migration-from-1x)

If you're upgrading from version 1.x, please note there are breaking changes in 2.x. See [CHANGELOG.md](CHANGELOG.md) for detailed migration information.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Swoole 5.1+

Installation
------------

[](#installation)

For new projects (recommended):

```
composer require imefisto/swoole-psr-kit:^2.0@alpha
```

For existing 1.x projects:

```
composer require imefisto/swoole-psr-kit:^1.1
```

Features
--------

[](#features)

- HTTP request handling with PSR-7 compliance
- WebSocket server support with clean event handlers
- Worker management interface
- Middleware support
- Extensible handler system

Basic Usage
-----------

[](#basic-usage)

See the folder `examples/`.

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

4

Last Release

231d ago

Major Versions

v0.1.0 → v1.0.02024-12-21

1.1.0 → 2.0.0-alpha.12025-09-23

PHP version history (2 changes)v0.1.0PHP ^8.1 || ^8.2 || ^8.3

1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f2e7639636e98cbebe6bd09fb8ac6d962db453fcda119e09cd32ad3c04d1b0f?d=identicon)[imefisto](/maintainers/imefisto)

---

Top Contributors

[![imefisto](https://avatars.githubusercontent.com/u/3299088?v=4)](https://github.com/imefisto "imefisto (63 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/imefisto-swoole-psr-kit/health.svg)

```
[![Health](https://phpackages.com/badges/imefisto-swoole-psr-kit/health.svg)](https://phpackages.com/packages/imefisto-swoole-psr-kit)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[yiisoft/yii-middleware

Yii Middleware

21151.3k1](/packages/yiisoft-yii-middleware)

PHPackages © 2026

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