Skip to content

The docker image with all popular modules for PHP frameworks as Yii2 or Laravel. Including composer for install packages

free6k/php-fpm-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PHP-FPM-COMPOSER

The docker image with all popular modules for PHP frameworks as Yii2 or Laravel. Including composer for install packages

Docker Hub

How to use

Run as php-fpm daemon on port 9000

docker run --rm -p "9000:9000" -v "$(pwd):/var/www/html" free6k/php-fpm-composer 

Run for single file or line code

docker run --rm -it -v "$(pwd):/var/www/html" free6k/php-fpm-composer php -r "echo 'Hi from php-fpm-composer' . PHP_EOL;" 

Run composer

docker run --rm -it -v "$(pwd):/var/www/html" free6k/php-fpm-composer composer -V 

Run in docker-compose, php-fpm will be listen port 9000

version: "3.7" services: php: image: free6k/php-fpm-composer:latest ports: - '9000:9000' volumes: - ./:/var/www/html:delegated 

Fast install and run Yii 2 framework

cd <to empty directory> docker run --rm -it -v "$(pwd):/var/www/html" free6k/php-fpm-composer composer create-project --prefer-dist yiisoft/yii2-app-basic . docker run --rm -it -p '8080:8080' -v "$(pwd):/var/www/html" free6k/php-fpm-composer ./yii serve 0.0.0.0 

Go to http://localhost:8080

Modules

# docker run --rm -it free6k/php-fpm-composer php -m [PHP Modules] bcmath bz2 Core ctype curl date dom fileinfo filter ftp gd gettext hash iconv imagick intl json ldap libxml mbstring memcache mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix readline redis Reflection session SimpleXML sockets sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zip zlib 

About

The docker image with all popular modules for PHP frameworks as Yii2 or Laravel. Including composer for install packages

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published