Workerman
Spiral Framework
Workerman | Spiral Framework | |
---|---|---|
6 | 15 | |
10,958 | 1,702 | |
- | 1.6% | |
8.3 | 9.5 | |
22 days ago | 3 days ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Workerman
-
Scaling to ~15K requests per second with Java – Part 1
I remember a consulting gig where they were pushing 50k requests per second with PHP in a 2018 laptop by using this framework https://github.com/walkor/workerman
In a real application, with database connection pooling and auth sessions, it went down to 15k requests/s.
And that was PHP7. PHP8 introduced JIT so it's probably significantly faster these days and hopefully fully typed.
-
Build Warehouse and Store Management System - Pt. 4 - Final
The code above is an example of creating a websocket server from the usage example on the workerman/workerman page on github.
- Integrating a websocket interfase into a REST API?
-
Exotic/unknown frameworks?
Workerman
- Running PHP code in parallel, the easy way
-
Asynchronous PHP — Multiprocessing, Multithreading & Coroutines - Diving Laravel
That's cute. I managed to get 100k requests per second on a single i7 CPU this week using standard blocking code with Workerman. Zero added cognitive load. It also does DB pooling, workers, sockets and consumes relatively lower memory than other solutions.
Spiral Framework
- Spiral – High-Performance PHP Framework
-
RoadRunner: High-performance PHP application server written in Golang
From the same developers :
PHP framework : https://spiral.dev/
ORM library : https://cycle-orm.dev/
- In your opinion, which existing PHP framework can become as popular as Symphony or Laravel?
- Any suggestions for lighter frameworks than Laravel?
-
Temporal PHP SDK: Scalable and resilent workflow orchestration on PHP
This SDK server is already available for RoadRunner 2.0+ and Spiral Framework users.
-
First version of PHP Templating Abstraction released
✅ Spiral (Twig, Blade, Latte, Plates, Smarty, Handlebars, Mustache, Spiral View)
-
Business complexity with performance
To give you some hint, you mention few of our instruments - RoadRunner, Cycle ORM. Accidentally, theese instruments are also part of our main battle framework - Spiral (https://github.com/spiral/framework), which we use for all of our commercial projects for over 12 years so far.
-
I like the PHP constant RAM characteristics under a load but struggle to find a semi-decent req/s PHP framework/library for API backends
Check https://github.com/spiral/framework - it would satisfy your perf requirements (roadrunner under the hood). We pushed it up to 250k on synthetic hello world, but in real world 20k are achievable without much hassle.
-
RoadRunner 2.11 - Application Server for PHP: Video tutorials, Kafka support
Yes, you are responsible for cleaning the memory after yourself. Most of modern frameworks can do it for you since they can control the state using DI. If you are looking for a more friendly way to manage memory take a look at https://github.com/spiral/framework It is Symfony like framework developed specifically for resident memory applications.
- Spiral: A High-Performance PHP/Go Framework
What are some alternatives?
Ratchet - Asynchronous WebSocket server
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
React - Event-driven, non-blocking I/O with PHP.
Ubiquity - Ubiquity framework
RoadRunner - 🤯 High-performance PHP application server, process manager written in Go and powered with plugins
Symfony - The Symfony PHP framework
LaravelS - LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
Swoole - 🚀 Coroutine-based concurrency library for PHP
Elephant.io - Ça trompe énormément
Phalcon - High performance, full-stack PHP framework delivered as a C extension.
Amp - A non-blocking concurrency framework for PHP applications. 🐘
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project