Swoole logo

Swoole

Coroutine asynchronous programming framework for PHP
53
132
+ 1
27

What is Swoole?

It is an open source high-performance network framework using an event-driven, asynchronous, non-blocking I/O model which makes it scalable and efficient.
Swoole is a tool in the Web Servers category of a tech stack.
Swoole is an open source tool with 18.2K GitHub stars and 3.2K GitHub forks. Here’s a link to Swoole's open source repository on GitHub

Who uses Swoole?

Companies
6 companies reportedly use Swoole in their tech stacks, including Appwrite, jobs.ch, and Nashrify.

Developers
45 developers on StackShare have stated that they use Swoole.

Swoole Integrations

React, MySQL, PHP, PostgreSQL, and Ubuntu are some of the popular tools that integrate with Swoole. Here's a list of all 13 tools that integrate with Swoole.
Pros of Swoole
7
Async programming
6
Really multi thread
5
Blazing fast
3
Simple to use
3
Coroutines concurrency model
3
High-performance http, websocket, tcp, udp server
Decisions about Swoole

Here are some stack decisions, common use cases and reviews by companies and developers who chose Swoole in their tech stack.

Pablo Largo
Software Developer at AvaiBook · | 4 upvotes · 20.6K views
Needs advice
on
ReactPHPReactPHPSwooleSwoole
and
UnityUnity

Hi! Anyone had any experience programming a game-oriented UDP server in PHP using Swoole or ReactPHP? I'm considering trying PHP 8 to really test performance (updating players based on received inputs during a time, simple radius based collision detection).

Also, I would love to know if there is any article/documentation about architecture (code organization, better ways to structure the game logic than a giant switch/elseif, etc.).

See more

Swoole's Features

  • Mobile API Server
  • Internet Of Things
  • Micro Services
  • Web API Or Web Application
  • Gaming Servers
  • Live Chat Systems

Swoole Alternatives & Comparisons

What are some alternatives to Swoole?
Node.js
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
NGINX
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.
ReactPHP
Aa low-level library for event-driven programming in PHP. At its core is an event loop, on top of which it provides low-level utilities
PHP-FPM
It is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. It includes Adaptive process spawning, Advanced process management with graceful stop/start, Emergency restart in case of accidental opcode cache destruction etc.
Golang
Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It's a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.
See all alternatives

Swoole's Followers
132 developers follow Swoole to keep up with related blogs and decisions.