Sign inSign up

smplphp/php

By smplphp

•Updated over 2 years ago

Collection of docker images designed to have all the utilities you need for PHP development.

Image
0

450

smplphp/php repository overview

⁠simpl-php/docker

Collection of docker images designed to have all the utilities you need for PHP development.

Based on official PHP images⁠, these images add additional packages and PHP extensions to create a complete development environment for PHP 7.4 - 8.3.

View on Docker Hub⁠ or see code for these images at https://github.com/simpl-php/docker⁠

⁠Running the PHP 8.3 container, exposing apache on port 8080

docker run -d -p 8080:80 smplphp/php:8.3-apache

See docker-compose.yaml for an example of running this for a Laravel application with images for MariaDB and Redis.

⁠Additional Packages

- curl
- default-mysql-client
- dnsutils
- git
- gnupg
- ldap-utils
- libfreetype6-dev
- libjpeg62-turbo-dev
- libldap2-dev
- libonig-dev
- libpng-dev
- libxml2-dev
- libzip-dev
- nano
- tzdata
- unzip
- zip

⁠Available Tags

smplphp/php:7.4-apache
smplphp/php:8.0-apache
smplphp/php:8.1-apache
smplphp/php:8.2-apache
smplphp/php:8.3-apache

⁠Utilities Installed

- composer
- NodeJS v20

⁠Installed PHP Modules

- bcmath
- Core
- ctype
- curl
- date
- dom
- exif
- fileinfo
- filter
- gd
- hash
- iconv
- json
- ldap
- libxml
- mbstring
- mysqlnd
- openssl
- pcntl
- pcre
- PDO
- pdo_mysql
- pdo_sqlite
- Phar
- posix
- random
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- sodium
- SPL
- sqlite3
- standard
- tokenizer
- xml
- xmlreader
- xmlwriter
- zip
- zlib

⁠Building, tagging and pushing tags to docker hub

docker build -t smplphp/php:8.3-apache -f Dockerfile-8.3 .
docker push smplphp/php:8.3-apache

⁠To build and push a single version.

./build.sh -v 8.3 -p

⁠To build multiple versions without pushing

./build.sh -v "7.4 8.0 8.1 8.2 8.3"

⁠To build and push multiple versions

./build.sh -v "7.4 8.0 8.1 8.2 8.3" -p

Tag summary

Content type

Image

Digest

sha256:88e0489e9…

Size

301.1 MB

Last updated

over 2 years ago

docker pull smplphp/php:8.3-apache