I'm learning web programming and this seems quite useful for what I'm doing. Any tips on how to do it in php with this?
I'm learning web programming and this seems quite useful for what I'm doing. Any tips on how to do it in php with this?
Eventually you’ll want to implement this using web sockets for performance, using a system like Laravel Broadcasting.
You can also package the total state JSON as a compact binary and store it in your server app, but you wouldn’t use that file to keep clients synced.
What are my options for that? There's no PHP library for that, it seems. Is their goal to have someone build a PHP C extension (or FFI) to call down to their library? That seems not very fun, because it's somewhat less portable than having a pure PHP implementation (even if it might be less performant).
Otherwise I think you’d be looking at a headless browser in the test runner.