Use PHP packages from packages.sury.org, made by the maintainer of the official debian packages of PHP. So you have different flavor of the images : with PHP 7.4, 8.1 to 8.3.
List of extensions:
all extensions built within the PHP binary of the debian package
possibility to setup at startup the uid/gid of the user that run php, so generated files into volumes could be owned
by the corresponding user on the host for example.
possibility to extend the entrypoint script.
possibility to enable the display of errors for debug