Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

PHP 7.3 + Some Modules Dockerfile.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages