frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Yii2 support

Open smartycoder opened this issue 1 year ago • 5 comments

Describe you feature request

Is there a plan to support Yii2 framework or is there any example for docker.

smartycoder avatar Feb 27 '24 10:02 smartycoder

It just works, you only need to link web folder to public or change the default Caddyfile.

razvanphp avatar May 27 '24 13:05 razvanphp

Would you mind opening a docs PR to explain how to serve Yii?

dunglas avatar May 27 '24 16:05 dunglas

Yes, sure, I'm currently building a PR for yiisoft/yii2-docker.

The official Yii2 images also inherit from official PHP docker, but I just miss a way to extrapolate from something like PHP_BASE_IMAGE_VERSION=8.2-zts into the tag for frankenphp docker image. Ideally it should be the exact same PHP version, down to path version, but it can be that the MINOR version might be out of sync and symbols might not be found.

Any suggestion on how to relink the frankenphp binary to the actual php installed? Or the compilation from source is the only way?

Current approach:

COPY --from=dunglas/frankenphp /usr/local/bin/frankenphp /usr/local/bin/frankenphp

razvanphp avatar May 27 '24 18:05 razvanphp