PHPackages                             edk24/dpe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. edk24/dpe

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

edk24/dpe
=========

docker-php 环境

04PHP

Since Jun 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/edk24/dpe)[ Packagist](https://packagist.org/packages/edk24/dpe)[ RSS](/packages/edk24-dpe/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DPE 工具
======

[](#dpe-工具)

一个为您的 php 项目集成 docker 的工具，具有 `生产环境` 和 `开发环境（含 xdebug）`。

干净无污染，集成后可以安全卸载此包；

缩写：DPE（`D`ocker `P`hp `E`nvironment）

- ✅ docker-compose
- ✅ k8s 可用

安装/卸载
-----

[](#安装卸载)

```
# 安装
$ composer require edk24/dpe

# 卸载 (集成 docker 后这个包就没有用途了， 可以删掉哦)
$ composer remove edk24/dpe
```

使用
--

[](#使用)

```
# 进入你的项目根目录执行
$ php vendor/bin/dpe init
请选择您使用的PHP版本:
  [0] 8.1
  [1] 7.4
  [2] 7.3
  [3] 7.1
 >

 运行环境:
  [0] production
  [1] development (use xdebug)
 >

 请选择您使用的Nginx规则:
  [0] default
  [1] thinkphp
  [2] laravel5
 >

 [INFO] 已经为您初始化完成，请执行 docker-compose up -d 启动服务
```

K8s
---

[](#k8s)

- 使用 Dockerfile 打包镜像推送到私有仓库后，在 k8s 中拉取使用

FAQ
---

[](#faq)

```
# 选成运行环境了，但是需要用到线上环境使用。
编辑 Dockerfile 将 `edk24/docker-php:8.1-dev` 中的 `-dev` 去掉重写运行即可。（-dev 是开发环境，携带 xdebug 不要用在生产环境）
```

注意事项
----

[](#注意事项)

此工具会拷贝下列文件到你的项目目录， 如果有重名文件，还请提前备份

- `makefile`
- `Dockerfile`
- `docker-compose.yml`
- `docker/`

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddc85b73d5aeef84ecc1c1713548b5928ed05083dd2bd07b05d5865846a2daa4?d=identicon)[edk24](/maintainers/edk24)

---

Top Contributors

[![edk24](https://avatars.githubusercontent.com/u/32519482?v=4)](https://github.com/edk24 "edk24 (7 commits)")

### Embed Badge

![Health badge](/badges/edk24-dpe/health.svg)

```
[![Health](https://phpackages.com/badges/edk24-dpe/health.svg)](https://phpackages.com/packages/edk24-dpe)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
