Sign inSign up

intellipharm/php-composer

By intellipharm

•Updated over 5 years ago

Image
0

2.4K

intellipharm/php-composer repository overview

⁠Docker PHP Composer

PHP with Composer and HTML Tidy for DockerHub.

⁠What is Composer?

Composer is a tool for dependency management in PHP, written in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

You can read more about Composer in the official documentation⁠.

⁠Getting Started

This repo contains at least one branch used to auto-build docker images on DockerHub⁠.

  • master -> Builds image intellipharm/php-composer:latest

⁠Usage

Build the composer container and tag latest

docker build -t intellipharm/php-composer:latest .

Running the composer image is as simple as follows:

docker run --rm --interactive --tty \
--volume $PWD:/app \
--work-dir /app \
intellipharm/php-composer:latest install

Run composer install

docker run --rm -it \
-v ${DIR}/api:/app \
-w /app \
intellipharm/php-composer:latest install

Run composer update

docker run --rm -it \
-v ${DIR}/api:/app \
-w /app \
intellipharm/php-composer:latest update

Run composer dump-autoload

docker run --rm -it \
-v ${DIR}/api:/app \
-w /app \
intellipharm/php-composer:latest dump-autoload

Tag summary

Content type

Image

Digest

Size

251.1 MB

Last updated

over 5 years ago

docker pull intellipharm/php-composer