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
[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
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
DockerHub:
docker pull wy373226722/php:7.3
中国:
docker pull registry.cn-shenzhen.aliyuncs.com/yi-ge/php:7.3
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.
- Shippable CI custom container
- Tags depend on version of PHP included.
- They are given by git branches.
- You can see them at Docker Hub.
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
- GIT
- PHP (from official PHP Docker images)
- Composer
- PHP_CodeSniffer
- PHPUnit
- Composer is installed globally.
- You can run it, eg.
composer self-update.
- PHP_CodeSniffer is installed globally.
- You can run it, eg.
phpcs --standard=PSR2 -nsp src tests.
- 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.