https://github.com/sineverba/php56xc
Docker image for PHP5.6 with Xdebug and Composer
https://github.com/sineverba/php56xc
composer docker docker-image php php5-6 php56-cli xdebug
Last synced: 4 months ago
JSON representation
Docker image for PHP5.6 with Xdebug and Composer
- Host: GitHub
- URL: https://github.com/sineverba/php56xc
- Owner: sineverba
- License: mit
- Created: 2020-04-13T05:36:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T13:22:38.000Z (about 2 years ago)
- Last Synced: 2024-04-08T14:30:06.833Z (about 2 years ago)
- Topics: composer, docker, docker-image, php, php5-6, php56-cli, xdebug
- Language: Makefile
- Size: 37.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
php56xc: Docker image for PHP5.6.x + Xdebug + Composer
======================================================
> Docker image built from **PHP5.6.x** CLI official + **X**debug + **C**omposer, multiarchitectures.
| CD / CI | |
| --------- | --------- |
| Semaphore CI | [](https://sineverba.semaphoreci.com/projects/php56xc) |
| Circle CI | [](https://circleci.com/gh/sineverba/php56xc) |
| Docker Hub | `docker pull sineverba/php56xc:1.8.0` - [Link to image](https://hub.docker.com/r/sineverba/php56xc) |
Short tags are __OFF__.
Image ready to use as alias for development.
Do you use it? **Star it!**
## Versions
| Github / Docker Image tag | PHP Version | Composer version | XDebug | Multiple Architectures ? |
| ------------------------- | ----------- | ---------------- | ------ | ------------------------ |
| latest | 5.6.40 | 1.10.27 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.8.0 | 5.6.40 | 1.10.27 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.7.0 | 5.6.40 | 1.10.27 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.6.0 | 5.6.40 | 1.10.26 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.5.0 | 5.6.40 | 1.10.26 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.4.0 | 5.6.40 | 1.10.25 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.3.0 | 5.6.40 | 1.10.22 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.2.0 | 5.6.40 | 1.10.21 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
| 1.1.0 | 5.6.40 | 1.10.20 | 2.5.5 | linux/amd64,linux/arm/v6,linux/arm/v7 |
## OpCache and settings
During development, you can enable/disable `opcache_validate_timestamps` with
```yaml
# docker-compose.yml
services:
app:
environment:
PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1
```
### Update local image
`$ docker pull sineverba/php56xc:1.8.0`
### PHP modules
`$ docker run --rm sineverba/php56xc php -m`
```shell
[PHP Modules]
bcmath
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mhash
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Xdebug
Zend OPcache
```
### Add image as alias
``` bash
$ cd ~
$ nano .bashrc
$ alias php56='docker run -it -w /data -v ${PWD}:/data --entrypoint php --rm sineverba/php56xc:1.8.0'
$ alias composer56='docker run -it -w /data -v ${PWD}:/data --entrypoint "/usr/bin/composer" --rm sineverba/php56xc:1.8.0'
```
### Issues with memory limit (on composer)
`$ php -d memory_limit=-1 /usr/bin/composer require [...]`