承接 shumkov/dhp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shumkov/dhp

Composer 安装命令:

composer require shumkov/dhp

包简介

Docker PHP interpreter

README 文档

README

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

P.S. i shit bash.

Installation

  1. Install composer.

  2. Add this line to your ~/.zshrc or ~/.bashrc:

    export PATH=~/.composer/vendor/bin:$PATH
  3. Install DHP:

    composer global require shumkov/dhp:*

Upgrade

Run composer global update shumkov/dhp

Using

You can use dhp command as usual PHP interpreter. Example: dhp script.php or dhp -i.

xDebug is disabled by default. It will enable when you will start debug.

For starting debugger pass XDEBUG_CONFIG env variable. Example: XDEBUG_CONFIG="idekey=PHPSTORM" dhp script.php

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

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)

Author

Ivan Shumkov ivan@shumkov.ru

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: proprietary
  • 更新时间: 2017-03-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固