Sign inSign up

pseiffert/php-cli

By pseiffert

•Updated almost 11 years ago

Image
1

1.2K

pseiffert/php-cli repository overview

⁠PHP-CLI Docker-Container

This repository is used to create Docker images for running PHP CLI commands.

⁠Usage

  1. Install the pseiffert/php-cli container (optional - this step is performed by Docker automatically when running the container):

    $ docker pull pseiffert/php-cli
    
  2. Define an bash alias that runs this container whenever composer is invoked on the command line:

    $ echo "alias php='docker run --rm -it -v \$(pwd):/opt pseiffert/php-cli'" >> ~/.bashrc
    $ source ~/.bashrc
    
  3. Run PHP as always:

    $ php -i
    

Tag summary

Content type

Image

Digest

sha256:f718b3b49…

Size

90.8 MB

Last updated

almost 11 years ago

docker pull pseiffert/php-cli