PHP 7.3 + Some Modules Dockerfile.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
Dockerfile
README.md
build.sh
php.ini
push.sh

README.md

php

Fork https://hub.docker.com/r/phpdocker/phpdocker/, remove MariaDB、Redis、Node.js,update php to 7.3。

Blog post: https://www.wyr.me/post/604

Images Modules

[PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
libxml
mbstring
memcached
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
ssh2
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
Xdebug

PHP 7.3 Official Images Modules

Many extensions are already compiled into the Official Images.

[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
ftp
hash
iconv
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

Usage

DockerHub:

docker pull wy373226722/php:7.3

中国:

docker pull registry.cn-shenzhen.aliyuncs.com/yi-ge/php:7.3

Run

Example:

docker run -itd --name php -v /www:/www -w /www -p 9000:9000 wy373226722/php:7.3

You can run it use rancher or portainer.

Example

Tags

  • Tags depend on version of PHP included.
  • They are given by git branches.
  • You can see them at Docker Hub.

Available Bash scripts

check-status-code

This performs a HTTP Request and checks returned status code.

Returns non-zero exit code when status is not 200 (OK).

Usage: URL="https://www.example.com" check-status-code

Returns non-zero exit code when status is not 403 (Forbidden).

Usage: URL="https://www.example.com" STATUS=403 check-status-code

Built-in applications

Composer

  • Composer is installed globally.
  • You can run it, eg. composer self-update.

PHP_CodeSniffer

  • PHP_CodeSniffer is installed globally.
  • You can run it, eg. phpcs --standard=PSR2 -nsp src tests.

PHPUnit

  • PHPUnit is installed globally.
  • You can run it, eg. phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage -c tests/configuration.xml tests.