Workerman
framework
Our great sponsors
Workerman | framework | |
---|---|---|
6 | 12 | |
10,937 | 70 | |
- | - | |
8.6 | 3.9 | |
8 days ago | 11 months ago | |
PHP | PHP | |
MIT License | Apache License 2.0 |
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.
framework
- Any suggestions for lighter frameworks than Laravel?
-
Introducing FEAST Framework v3.0.0! PHP 8.2 required.
In April of 2021, version 1.0 of FEAST Framework was released. One year ago, version 2.0 of FEAST Framework was released. Today, I am happy to announce the release of version 3.0 of FEAST Framework.
- What are the popular PHP Frameworks you are using for the development of web applications and why?
-
Good PHP Source Code
I would like to submit https://github.com/feastframework/framework to this. It's a small framework I wrote and what I think sets it apart is it has 100% code coverage with PHPUnit and has 100% static type analysis with psalm.
-
What is your favorite PHP stack and why?
FEAST Framework. Go figure.
-
Adding Test Suite to Someone Elses Project
This isn't quiiiite the same as your scenario, but in December the (not yet at that time) version of FEAST Framework didn't have a single unit test outside of one simple class (The Date class). By March, it had 100% coverage.
-
How to convert a PHPUnit testsuite to Pest
You can find it here: FEAST Framework
-
On using PSR abstractions — Matthias Noback
I have minor issues with the PSR-11 interface due to it not being capable of strong typing on the variables... And yet my framework (https://github.com/feastframework/framework) uses it. It's nice to have that layer of flexibility. Admittedly, I pissed a few people off by just throwing the interface in my codebase but whatevs 😂
-
Test-Driven Development by Example (PHP Code Samples)
This book actually had a very large hand in the development of my PHP Framework FEAST and definitely is one of the books that inspired my goal (which was achieved) of 100% code coverage.
- Introducing FEAST Framework
What are some alternatives?
Ratchet - Asynchronous WebSocket server
Elgg - A social networking engine in PHP/MySQL
React - Event-driven, non-blocking I/O with PHP.
trongate-framework - The Trongate PHP framework
RoadRunner - 🤯 High-performance PHP application server, process manager written in Go and powered with plugins
tina4-php - Tina4 PHP composer repository
LaravelS - LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
Pimple - A small PHP dependency injection container
Elephant.io - Ça trompe énormément
fram - Fram is a view framework for PHP
Amp - A non-blocking concurrency framework for PHP applications. 🐘
tdd-php - Test Driven Development by Example (Kent Beck) PHP Code samples