Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.83 KB

README.md

File metadata and controls

67 lines (48 loc) · 1.83 KB

PHP Image with my configurations

Docker Hub Link

Build, Push php 7.1 image Build, Push php 7.3 image Build, Push php 8.0 image Build, Push php 8.1 image

This is a Docker image for PHP FPM with my own configuration. The image has Composer installed by default with many PHP extensions enabled.

Usage

By default, the container will create a webserver using PHP built-in web server feature.

docker run -v $PWD:/var/www -p 80:80 ammardev0/php

You can execute any other command. That will run your command inside the container without running the web server.

docker run ammardev0/php php -v

Available tags/versions

  • 7.1
  • 7.3
  • 8.0
  • 8.1 / latest

Extensions

  • XDebug
  • Memcached
  • Redis
  • MongoDB
  • GD
  • bcmath
  • pdo_mysql
  • zip
  • exif
  • opcache
  • calendar
  • pcntl

Aliases

The image has many aliases enabled by default (Assuming that you are using the zsh shell).

art = php artisan
test = clear && php artisan test

Other useful tools

This package has the following tools installed:

  • ZSH shell
  • Composer
  • Laravel Envoy (Installed Globally)