PHPackages                             shixinke/envtool - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shixinke/envtool

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shixinke/envtool
================

an environment management tool for php application

02PHP

Since Sep 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/shixinke/envtool)[ Packagist](https://packagist.org/packages/shixinke/envtool)[ RSS](/packages/shixinke-envtool/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

#### envtool

[](#envtool)

一款轻量级环境工具,根据不同环境生成不同的.env环境配置文件

#### 基本用法

[](#基本用法)

php bin/envtool --env dev --config .env --path env --example .env.example start

- \--env:表示环境名称:默认为dev/test/beta/prod 4个,可以根据自己的需要要定义
- \--config:设置配置文件名称
- \--path:设置环境配置目录
- \--example:示例配置文件目录
- \--envList:环境列表设置
- start:表示执行的动作为start

#### 与composer结合

[](#与composer结合)

```
{
    "scripts":{
        "dev":"php bin/devtool --env dev --config .env --path env --example .env.example start",
    }
}

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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://avatars.githubusercontent.com/u/9602010?v=4)[诗心客](/maintainers/shixinke)[@shixinke](https://github.com/shixinke)

---

Top Contributors

[![shixinke](https://avatars.githubusercontent.com/u/9602010?v=4)](https://github.com/shixinke "shixinke (3 commits)")

---

Tags

php-envphp-env-tool

### Embed Badge

![Health badge](/badges/shixinke-envtool/health.svg)

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

PHPackages © 2026

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