gustavofreze/php
PHP Docker images.
100K+
8.2
,
8.3
,
8.2-fpm
,
8.3-fpm
PHP is a widely used open source general-purpose scripting language especially suited for web development.
Create a Dockerfile in your project:
FROM gustavofreze/php
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
You can then run and build the Docker image:
docker build -t my-php-app .
After the image is built:
docker run -it --rm --name my-running-app my-php-app
Extensions and tools added to this image.
Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience.
CodeSniffer is a set of two PHP scripts. The main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
PHPMD is a mature project and provides a diverse set of pre-defined rules to detect code smells and possible errors within the analyzed source code.
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on, and it will manage (install/update) them for you.
docker pull gustavofreze/php