Public Repository

Last pushed: 2 years ago
Short Description
Dependency manager for PHP
Full Description

Composer Docker Container

Docker container to install and run Composer.


Tag number is correspond PHP version.

  • 5.6.18
  • 7.0.3


  1. Install jianhuahe/composer image

     docker pull jianhuahe/composer

    Or you can install specific tag.

     docker pull jianhuahe/composer:5.6.18
  2. Define composer.json file in your application folder

       "require": {
  3. Install Composer dependency through the container

     docker run --rm -v $PWD:/app jianhuahe/composer composer install

Create Laravel Project

Create Laravel project through the container.

 docker run -it -v $PWD:/app jianhuahe/composer composer create-project --prefer-dist laravel/laravel app
Docker Pull Command