Zaher Ghaibeh
PHP Backend developer
I've experience in a few PHP Frameworks, such as Laravel, Lumen and Slim (The last two are used for building Microservices/API services).
Be prepared, test your apps with PHP 7.3 RC 5
Published at Thursday, November 15, 2018 , Categorized under: Computer, Testing, PHP, Development

As everyone know, PHP 7.3 is going to be released soon, and what is the best way to be ready other than start testing your apps.

To make things easier, I have built a small PHP docker image with Xdebug v2.7.0beta2-dev, it is built from the base PHP 7.3 RC5 fpm image to make sure you will always get the latest version.

Image description:

The image contains php-7.3-RC based on alpine with xDebug, MySQL, PostgreSQL, Redis & GD enabled and Composer already installed.

PHP 7.3.0RC5 (fpm-fcgi) (built: Nov  9 2018 23:24:30)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.7.0beta2-dev, Copyright (c) 2002-2018, by Derick Rethans

Running the image:

As any docker image you can run it with a simple command:

docker run --env-file .env -p 80:80 zaherg/php-7.3-rc-xdebug-alpine

where you can tweak the .env file to suite you, as the environment variables are:

PHP_XDEBUG_DEFAULT_ENABLE=0
PHP_XDEBUG_REMOTE_ENABLE=0
PHP_XDEBUG_REMOTE_HOST=127.0.0.1
PHP_XDEBUG_REMOTE_PORT=9001
PHP_XDEBUG_REMOTE_AUTO_START=0
PHP_XDEBUG_REMOTE_CONNECT_BACK=0
PHP_XDEBUG_IDEKEY=docker
PHP_XDEBUG_PROFILER_ENABLE=0
PHP_XDEBUG_PROFILER_OUTPUT_DIR=/tmp

Installed modules:

These are the modules that you will have with the image out of the box:

[PHP Modules]

1. Core
2. ctype
3. curl
4. date
5. dom
6. fileinfo
7. filter
8. ftp
9. gd
10. hash
11. iconv
12. intl
13. json
14. libxml
15. mbstring
16. mysqlnd
17. openssl
18. pcre
19. PDO
20. pdo_mysql
21. pdo_pgsql
22. pdo_sqlite
23. pgsql
24. Phar
25. posix
26. readline
27. redis
28. Reflection
29. session
30. SimpleXML
31. sodium
32. SPL
33. sqlite3
34. standard
35. tokenizer
36. xdebug
37. xml
38. xmlreader
39. xmlwriter
40. zip
41. zlib

[Zend Modules]

1. Xdebug

GD library information

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.9.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.6.34
WBMP Support => enabled
XBM Support => enabled
Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 1 => 1

Hope you a happy testing, and I'll try my best to keep the image up-to-date with the latest PHP version till they release the final version.