Download the PHP package samuelnogueira/zend-expressive-swoole without Composer
On this page you can find all versions of the php package samuelnogueira/zend-expressive-swoole. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samuelnogueira/zend-expressive-swoole
More information about samuelnogueira/zend-expressive-swoole
Files in samuelnogueira/zend-expressive-swoole
Package zend-expressive-swoole
Short Description Swoole HTTP server integration with Zend Expressive framework
License MIT
Informations about the package zend-expressive-swoole
This library is abandoned and no longer maintained
There is now an official Zend library for integrating swoole with zend expressive: https://github.com/zendframework/zend-expressive-swoole/
Swoole HTTP server integration with Zend Expressive framework
Requirements
- PHP >= 7.1
- ext-swoole >= 2.0
- Zend Expressive v3 application
Support for older version v2 of Zend Expressive is provided in version 0.2 of this library.
Installation
This package is installable and autoloadable via Composer as samuelnogueira/zend-expressive-swoole.
Configuration
Any omitted config key will fallback to the default value in the comments above.
Usage
Hot Code Reload
To enable hot code reload, add the following configuration:
With this feature enabled, each swoole worker will keep track of included PHP files using inotify, and will restart all workers if a file is changed.
This serves to enable easier development when using swoole server.
Do not use this feature in production. It doesn't perform well for a big number of workers, nor is it safe.
TODO
- [x]
Cookies retrievable via \Psr\Http\Message\ServerRequestInterface::getCookieParams - [x]
Configurable number of workers - [x]
Hot code reload - [x]
Add support for Zend Expressive 3 - [ ] Include
Cookie
header in generated PSR-7 Server Request - [ ] Handle uploaded files
- [ ] Stream request body instead of buffering it
- [x]
Stream response body instead of buffering it - [ ] Windows support?
All versions of zend-expressive-swoole with dependencies
ext-swoole Version ^2.0
psr/container Version ^1.0
psr/http-server-middleware Version ^1.0
dflydev/fig-cookies Version ^1.0
zendframework/zend-diactoros Version ^1.7