Reference

Command reference

The images add helper commands to /usr/local/bin for installing packages and extensions, fixing file permissions, and checking Laravel processes.

Every command from the official PHP image, such as docker-php-ext-install and pecl, also works. The images run as www-data, so commands marked Requires USER root need USER root in your Dockerfile and USER www-data again afterward.

18 commands

  • All variationsRun php artisan from any directory.
  • All variations Requires USER rootInstall OS packages on Alpine only.
  • All variations Requires USER rootInstall OS packages on Debian only.
  • All variationsDownload a file, retrying failed requests.
  • All variationsThe image's entrypoint, which runs the start-up scripts.
  • All variations Requires USER rootInstall a specific version of install-php-extensions.
  • All variations Requires USER rootInstall PHP extensions, optionally from another source.
  • fpm-nginx · fpm-apache Requires USER rootRun the start-up scripts as S6 Overlay services.
  • All variations Requires USER rootGive a UID and GID ownership of the files the image needs.
  • All variations Requires USER rootChange the UID and GID of www-data or another user.
  • All variationsCheck that Laravel Horizon is running.
  • All variationsCheck the Laravel Nightwatch agent.
  • All variationsCheck that Laravel Octane is running.
  • All variationsCheck that a queue:work process is running.
  • All variationsCheck that a reverb:start process is running.
  • All variationsCheck that a schedule:work process is running.
  • All variations Requires USER rootInstall PHP extensions and the libraries they need.
  • fpm · fpm-nginx · fpm-apacheCheck PHP-FPM through its ping and status pages.