Show HN: PhpOverWebsocket
github.com
Show HN: PhpOverWebsocket
1–10 of 10 posts
Re: Show HN: PhpOverWebsocket
#2WhatCouldPossiblyGoWrong™
Re: Show HN: PhpOverWebsocket
#3Interesting, thx
Re: Show HN: PhpOverWebsocket
#4Re: Show HN: PhpOverWebsocket
#5Neat hack. Not sure why you'd want to do this, but I don't usually let that stop me either. :D
Re: Show HN: PhpOverWebsocket
#6https://github.com/tonysm/turbo-laravel
wow thanks for this
Re: Show HN: PhpOverWebsocket
#7Also see Livewire. I'm personally not a fan, but it's a interesting direction and definitely has its advantages. It's also unfortunately rather horrible on slow connections (imagine waiting 500ms for your fancy dropdown to open).
I think the end result will be a mix of javascript for localised interactivity and html over the wire for server side stuff (ex. datatables).
Re: Show HN: PhpOverWebsocket
#8https://github.com/tonysm/turbo-laravel
HTML over the wire? So... a Hypertext Preprocessor you say?
We really have come full circle haven't we.
Re: Show HN: PhpOverWebsocket
#9Looks like a neat hack, but it also looks like it has path traversal issues, so be careful with it.
$url = $request->url;
$path = $this->rootDir.$url;
$env = [ ... "SCRIPT_FILENAME" => $path,...]
$process = proc_open('php-cgi', $descriptorspec, $pipes, $cwd, $env);Re: Show HN: PhpOverWebsocket
#10https://github.com/tonysm/turbo-laravel
This is really cool! I'll have to use it in my next PHP project.