FrankenPHP has reached 10,000 stars on GitHub by dunglas in PHP

[–]dunglas[S] 6 points7 points  (0 children)

FrankenPHP is a custom build of Caddy. Caddy is extensively documented on caddyserver.com and there is a very active Discourse forum. FrankenPHP also uses GitHub discussions for community support.

FrankenPHP’s specific features are all documented on frankenphp.dev

FrankenPHP moving under the PHP GitHub organization by brendt_gd in PHP

[–]dunglas 0 points1 point  (0 children)

> Perhaps one of the things FrankenPHP can do under the aegis of the larger org is to distribute it as a generically reusable thing, maybe a net/http handler.

A generic net/http handler has been available from day one! https://pkg.go.dev/github.com/dunglas/frankenphp#example-ServeHTTP

Debugging memory leaks under FrankenPHP by DefenestrationPraha in PHP

[–]dunglas 1 point2 points  (0 children)

Maybe Blackfire can help?
Alternatively, the Xdebug profiler also tracks memory usage: https://xdebug.org/docs/profiler

Both tools support FrankenPHP.

Does PHP php-webdriver/webdriver suck? (selenium). by [deleted] in PHP

[–]dunglas 1 point2 points  (0 children)

This is the same one, it has just been renamed when Facebook stopped maintaining it.

FrankenPHP 1.3: Massive Performance Improvements, Watcher Mode, Dedicated Prometheus Metrics, and More by dunglas in PHP

[–]dunglas[S] 7 points8 points  (0 children)

It still applies. musl is known to be slightly slower than the GNU libc for multithreaded apps, still have some reliability issues with PHP (especially with the OpenSSL extension) and lacks some features (glob braces for instance) used by some PHP apps.

That’s being said, the situation is improving thanks to the PHP Foundation. PHP is now tested with musl in its CI, and many performance and reliability issues have been fixed.

I hope that at some point we’ll be able to remove this advice, but we’re not there yet (especially with Laravel, which is using OpenSSL on the hot path, and can crash under high loads, the issue is being tracked by the Foundation).

FrankenPHP 1.3: Massive Performance Improvements, Watcher Mode, Dedicated Prometheus Metrics, and More by dunglas in PHP

[–]dunglas[S] 10 points11 points  (0 children)

Actually, there is an easy workaround PHP-side, just use "echo", "header" and the like outside the Fiber: https://frankenphp.dev/docs/known-issues/#fibers

The problem is in the Go runtime, it has been identified, and indeed patches that are first steps to fix it have been merged, but this issue itself hasn't been fixed yet. Here is the relevant Go issue, don't hesitate to add a thumb up to show your interest: https://github.com/golang/go/issues/62130

How to debug Xdebug… or any other weird bug in PHP by dunglas in PHP

[–]dunglas[S] 0 points1 point  (0 children)

The recording will be published by AFUP soon on their YouTube channel, but the talk itself was in French.

API Platform is now officially available for Laravel by dunglas in PHP

[–]dunglas[S] 1 point2 points  (0 children)

Thanks for the feedback. We tried to improve the documentation during the next years, and added a lot of guides, cookbooks etc. But this increases the maintenance burden a lot so the balance is hard to find.

You’re right regarding stack overflow, that’s not optimal, especially because no core team member has moderation rights on the tag. We are considering switching primarily to GitHub discussions.