All Projects → swooletw → Laravel Swoole

swooletw / Laravel Swoole

Licence: mit
High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Laravel Swoole

Laravel S
LaravelS is an out-of-the-box adapter between Swoole and Laravel/Lumen.
Stars: ✭ 3,479 (-6.63%)
Mutual labels:  laravel, swoole, lumen, websocket
Shadowfax
Run Laravel on Swoole.
Stars: ✭ 325 (-91.28%)
Mutual labels:  laravel, swoole, websocket
swoole-laravel-chat
Simple stateless chat board [Swoole + SocketIO + Laravel]
Stars: ✭ 16 (-99.57%)
Mutual labels:  socket-io, swoole, laravel-swoole
Laravel Job Status
Add ability to track Job progress, status and result dispatched to Queue.
Stars: ✭ 279 (-92.51%)
Mutual labels:  laravel, lumen
Vue Socket.io
😻 Socket.io implementation for Vuejs and Vuex
Stars: ✭ 3,746 (+0.54%)
Mutual labels:  websocket, socket-io
Manaphp
ManaPHP Framework: Swoole+FPM
Stars: ✭ 271 (-92.73%)
Mutual labels:  laravel, swoole
swoole-server-bundle
No description or website provided.
Stars: ✭ 15 (-99.6%)
Mutual labels:  swoole, swoole-server
Laravel5 Jsonapi
Laravel 5 JSON API Transformer Package
Stars: ✭ 313 (-91.6%)
Mutual labels:  laravel, lumen
Laravel Swap
💵 Currency exchange rates for Laravel and Lumen
Stars: ✭ 296 (-92.06%)
Mutual labels:  laravel, lumen
Reading
整理阅读过的干货文章, 帖子
Stars: ✭ 318 (-91.47%)
Mutual labels:  laravel, swoole
Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (-91.44%)
Mutual labels:  laravel, lumen
Simps
🚀 A simple, lightweight and high-performance PHP coroutine framework.
Stars: ✭ 318 (-91.47%)
Mutual labels:  swoole, websocket
Socket.io
NodeJS《你画我猜》游戏
Stars: ✭ 255 (-93.16%)
Mutual labels:  websocket, socket-io
php7-alpine
Docker container for PHP 7 in Alpine Linux, with almost all extensions that you may need
Stars: ✭ 20 (-99.46%)
Mutual labels:  lumen, swoole
Laravel Postal Code Validation
Worldwide postal code validation for Laravel and Lumen
Stars: ✭ 278 (-92.54%)
Mutual labels:  laravel, lumen
swoole
FastD Swoole 基础组件
Stars: ✭ 76 (-97.96%)
Mutual labels:  swoole, swoole-http
Lawoole
Lawoole is a high-performance PHP framework based on Laravel and Swoole
Stars: ✭ 300 (-91.95%)
Mutual labels:  laravel, swoole
http
Support Swoole Implement PSR7
Stars: ✭ 28 (-99.25%)
Mutual labels:  swoole, swoole-http
Socket.io Client Dart
socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client
Stars: ✭ 333 (-91.06%)
Mutual labels:  websocket, socket-io
Swoole Src
🚀 Coroutine-based concurrency library for PHP
Stars: ✭ 17,175 (+360.95%)
Mutual labels:  swoole, websocket

Laravel-Swoole

php-badge packagist-badge Total Downloads Scrutinizer Code Quality travis-badge

This package provides a high performance HTTP server to speed up your Laravel/Lumen application based on Swoole.

Version Compatibility

PHP Laravel Lumen Swoole
>=7.2 >=5.5 >=5.5 >=4.3.1

Features

  • Run Laravel/Lumen application on top of Swoole.
  • Outstanding performance boosting up to 5x faster.
  • Sandbox mode to isolate app container.
  • Support running websocket server in Laravel.
  • Support Socket.io protocol.
  • Support Swoole table for cross-process data sharing.

Documentation

Please see Wiki

Benchmark

Test with clean Lumen 5.6, using DigitalOcean 3 CPUs / 1 GB Memory / PHP 7.2 / Ubuntu 16.04.4 x64

Benchmarking Tool: wrk

wrk -t4 -c100 http://your.app

Nginx with FPM

wrk -t4 -c10 http://lumen-swoole.local

Running 10s test @ http://lumen-swoole.local
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     6.41ms    1.56ms  19.71ms   71.32%
    Req/Sec   312.99     28.71   373.00     72.00%
  12469 requests in 10.01s, 3.14MB read
Requests/sec:   1245.79
Transfer/sec:    321.12KB

Swoole HTTP Server

wrk -t4 -c10 http://lumen-swoole.local:1215

Running 10s test @ http://lumen-swoole.local:1215
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.39ms    4.88ms 105.21ms   94.55%
    Req/Sec     1.26k   197.13     1.85k    68.75%
  50248 requests in 10.02s, 10.88MB read
Requests/sec:   5016.94
Transfer/sec:      1.09MB

Q&A

The common questions are collected in Q&A. You can go check if your question is listed in the document.

Issues and Support

Please read Issues Guideline before you submit an issue, thanks.

Bugs and feature request are tracked on GitHub.

Credits

Huang-Yi,

Alternatives

License

The Laravel-Swoole package is open-sourced software licensed under the MIT license.

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].