2017 © Pedro Peláez
 

library dhp

Docker PHP interpreter

image

shumkov/dhp

Docker PHP interpreter

  • Wednesday, March 29, 2017
  • by Shumkov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

DHP. Docker PHP interpreter

DHP is a wrapper around a PHP docker container. It provides transparent using containerized PHP as you use usual local PHP interpreter., (*1)

P.S. i shit bash., (*2)

Installation

  1. Install composer.
  2. Add this line to your ~/.zshrc or ~/.bashrc:, (*3)

    export PATH=~/.composer/vendor/bin:$PATH
    
  3. Install DHP:, (*4)

    composer global require shumkov/dhp:*
    

Upgrade

Run composer global update shumkov/dhp, (*5)

Using

You can use dhp command as usual PHP interpreter. Example: dhp script.php or dhp -i., (*6)

xDebug is disabled by default. It will enable when you will start debug., (*7)

For starting debugger pass XDEBUG_CONFIG env variable. Example: XDEBUG_CONFIG="idekey=PHPSTORM" dhp script.php, (*8)

Configuration

Available options: - DHP_DOCKER_IMAGE - Docker PHP image name. Default: docker2o.itim.vn/library/php:7.0 - DHP_EXPORT_ENV - List of env variables to pass to php - DHP_DOCKER_NET - Use existing docker network, (*9)

You have three ways to set options: 1. As env variables in your shell. Example: export DHP_EXPORT_ENV="APP_ENV" 2. Pass options before command. Example: DHP_EXPORT_ENV="APP_ENV" dhp script.php 3. Create .env file with options in your project root path (recommended), (*10)

Author

Ivan Shumkov ivan@shumkov.ru, (*11)

The Versions

29/03 2017

dev-master

9999999-dev

Docker PHP interpreter

  Sources   Download

proprietary

06/12 2016

0.4.0

0.4.0.0

Docker PHP interpreter

  Sources   Download

proprietary

25/05 2016

0.3.0

0.3.0.0

Docker PHP interpreter

  Sources   Download

proprietary

20/05 2016

0.2.0

0.2.0.0

Docker PHP interpreter

  Sources   Download

proprietary

20/05 2016

0.1.0

0.1.0.0

Docker PHP interpreter

  Sources   Download

proprietary