Our great sponsors
- Cloudways Cloudways' Black Friday Offer - 1st Choice of Developers
- Onboard AI - Learn any GitHub repo in 59 seconds
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
-
Otherwise, if I need something larger, then I would go towards OAuth and than in particular OAuth2 from the PHP league. It provides a good framework to work with to implement authentication in your project. Setting up is a bit of work, but when it works, you don't need to look at it again.
-
-
Cloudways
Cloudways' Black Friday Offer - 1st Choice of Developers. Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.
-
Which implementation would you like? * http://socketo.me/ * https://amphp.org/websocket-client/ * https://www.swoole.co.uk/docs/modules/swoole-websocket-server
-
A rather common solution is to set up a dedicated service which will run real time connection with the client. Either node or something like elixir and shoot events into the 'blackbox' which later is responsible for pushing the data to the client. Good example is https://github.com/edgurgel/poxa.
-
I've found this ticket, which has been closed and doesn't have any activity in the discussion.
-
I have a question regarding PHP routing. There are plenty of implementations but one that comes to mind is FastRoute by Nikic. Its regex router and I was just curious whether its more performant to run this kind of implementation compared to just a cached associative array to map against for routes.
-
You might additionally appreciate this: https://github.com/pmjones/AutoRoute
-
Onboard AI
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
-
Benchmark against FastRoute here: https://github.com/pmjones/AutoRoute-benchmark