gustavofreze/php

By gustavofreze

Updated 2 days ago

PHP Docker images.

Image
Languages & Frameworks
Developer Tools

100K+

PHP

Quick reference

Supported tags and respective Dockerfile links

8.2, 8.3, 8.2-fpm, 8.3-fpm

What is PHP?

PHP is a widely used open source general-purpose scripting language especially suited for web development.

How to use this image?

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

Extensions and tools added to this image.

Xdebug

Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience.

CodeSniffer

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.

Mess Detector

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

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 Command

docker pull gustavofreze/php