frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Add documentation on how to detect the FrankenPHP version and the Caddy version underneath

Open Marian-Kechlibar opened this issue 1 year ago • 3 comments

Describe you feature request

I would like to display in my app's About page what is the precise version of FrankenPHP and Caddy running underneath. I am using one of the official Docker images as a base.

The best would be to describe in the documentation, which environment variables or functions can be used to obtain this version information.

Marian-Kechlibar avatar Dec 09 '24 16:12 Marian-Kechlibar

See #1225

withinboredom avatar Dec 14 '24 21:12 withinboredom

I don't think it exposes this info. There's SERVER_SOFTWARE but it says simply "FrankenPHP". So the following should do the job:

$frankenString = exec('frankenphp -v');
// in my case it is:
// FrankenPHP (WolfiPHP) 1.3.6 Caddy v2.8.4 => /usr/src/caddy@(devel)

samdark avatar Jan 28 '25 13:01 samdark

Correct. It currently doesn't expose the version but the issue I linked above is also linked to an open PR to expose that version string.

withinboredom avatar Jan 28 '25 16:01 withinboredom