joanhey / AdapterMan

Run almost any PHP app faster and asynchronously with Workerman, without touch 1 line of code in your fw or app. Also use it as Serverless.
https://twitter.com/adaptermanphp
MIT License
746 stars 48 forks source link

Can it be adapted to Laravel octane #5

Closed JaguarJack closed 1 year ago

joanhey commented 1 year ago

That's the good thing about Adapterman, you don't need Laravel Octane. Laravel Octane and Symfony Runtime (phpruntime), try to move the devs to their ecosystem, not to the PHP ecosystem.

Adapterman work without changes with Laravel, Symfony, Slim, Lumen, Kumbiaphp, ....

joanhey commented 1 year ago

Laravel with Workerman without use Octane: 350% faster and 12% latency image image image

Lumen: 600% faster image image

jhdxr commented 1 year ago

I think it may worth to revisit this issue.

I'm trying to use the laravel-debug-bar in workerman mode, with help of this repo. I found Laravel Octane not only provides the ability to keep the application in memory or provides some convenient methods of underlying packages, which is covered by this project or just optional feature, but also provides a convention for third party to bootstrap their package and clean up between requests

For example, laravel-debug-bar adds some listener for tracking when a requests comes in, which needs to be removed after each requests.

While this is something I can get it done in my own server.php, I still suggest AdapterMan to consider to include this feature, as this is essential between different framework/projects, and this is also some "adapter" job.

joanhey commented 1 year ago

I don't use Laravel And I will help anybody that want to flush the laravel libs !!!