imefisto / psr-swoole-native
Convert Swoole HTTP requests to PSR-7 and merge PSR-7 responses back to Swoole
Requires
- php: ^8.1
- dflydev/fig-cookies: ^3.1
- psr/http-factory: ^1.1
- psr/http-message: ^1.1 || ^2.0
Requires (Dev)
- nyholm/psr7: ^1.8
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
- rector/rector: ^2.0
- swoole/ide-helper: ^4.8
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v2.2.1
- v2.2.0
- v2.1.0
- 2.0.2
- 2.0.0
- 1.x-dev
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-release/2.2.1
- dev-chore/fix-and-add-examples
- dev-release/2.2.0
- dev-fix/nested-uploaded-files
- dev-feat/json-parsed-body
- dev-release/2.1.0
- dev-feat-allow-automatic-chunk
- dev-chore/code-quality-php-compat
This package is auto-updated.
Last update: 2026-10-14 02:23:29 UTC
README
Get PSR request from Swoole request and allow merging a PSR response into the Swoole response.
Install with:
composer require imefisto/psr-swoole-native
See how to use it in the examples folder.
Version Compatibility
Starting from version 2.0.0, this library requires PHP 8.1 or greater. If you need support for PHP 7.x or PHP 8.0, please:
- Use version 1.x of this library, or
- Feel free to submit PRs for older PHP versions - contributions are welcome!
Compatibility Matrix
These are the Swoole and PHP versions that version 2.2.1 of this library was tested with. The test suite runs on each of them in CI, using the official phpswoole/swoole images.
| Swoole Version | PHP Version | Status |
|---|---|---|
| 4.8.13 | 8.1.30 | ✅ |
| 5.1.8 | 8.2.29 | ✅ |
| 5.1.8 | 8.3.26 | ✅ |
| 6.0.2 | 8.4.14 | ✅ |
| 6.2.3 | 8.5.10 | ✅ |
PHP 7.x and 8.0 are not supported since 2.0.0 (see above).
🛠 Maintainer Guide: Release Workflow
If you're preparing a new release, you can use the provided Makefile to streamline the process.
Common Commands
-
✅ Validate the composer.json:
make validate
-
✅ Run tests:
make test -
✅ Update dependencies:
make update
-
🚀 Create a release:
make release
This will:
- Validate
composer.json - Run the test suite
- Create a Git tag based on the latest version in
CHANGELOG.md - Push the tag to the repository
- Validate
If you want to set the version manually:
make release VERSION=1.2.3
💡 Tip: Remember to update
CHANGELOG.mdwith the new version before runningmake release.