PHPackages                             changhorizon/pps - 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. changhorizon/pps

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

changhorizon/pps
================

PHP Project Scaffold – minimal and ready to code

v0.2.3(4w ago)01MITPHPPHP &gt;=8.2CI passing

Since May 11Pushed 4w ago1 watchersCompare

[ Source](https://github.com/changhorizon/pps)[ Packagist](https://packagist.org/packages/changhorizon/pps)[ RSS](/packages/changhorizon-pps/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (9)Versions (8)Used By (0)

PPS
===

[](#pps)

> PHP Project Scaffold – minimal and ready to code

[![License](https://camo.githubusercontent.com/d81455f581a02beda5f0d0638fad0ca08a765ebb13b4e8e49068dd797b02fc25/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368616e67686f72697a6f6e2f7070733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d81455f581a02beda5f0d0638fad0ca08a765ebb13b4e8e49068dd797b02fc25/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368616e67686f72697a6f6e2f7070733f7374796c653d666c61742d737175617265)[![Latest Version](https://camo.githubusercontent.com/8a5c90f5498474a387832b2a24ed49087b704edd2a0c8f5c3f2cb836170827fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368616e67686f72697a6f6e2f7070733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8a5c90f5498474a387832b2a24ed49087b704edd2a0c8f5c3f2cb836170827fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368616e67686f72697a6f6e2f7070733f7374796c653d666c61742d737175617265)[![PHP Version](https://camo.githubusercontent.com/10b897c523f00fa3f8f7b54dfe73999190e622480655d5b5f011e31fc32a7111/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d2d382e342d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/10b897c523f00fa3f8f7b54dfe73999190e622480655d5b5f011e31fc32a7111/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d2d382e342d626c75653f7374796c653d666c61742d737175617265)[![Static Analysis](https://camo.githubusercontent.com/1a477f5e7e742a33c1ff5b685167579083a26c342c4e997fe056ea4ef7bea73e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617469635f616e616c797369732d5048505374616e2d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1a477f5e7e742a33c1ff5b685167579083a26c342c4e997fe056ea4ef7bea73e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617469635f616e616c797369732d5048505374616e2d626c75653f7374796c653d666c61742d737175617265)[![Tests](https://camo.githubusercontent.com/72829871c802983bff15745f71c846973b36a6fea0bb5298dadaeeb690463604/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d504850556e69742d627269676874677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/72829871c802983bff15745f71c846973b36a6fea0bb5298dadaeeb690463604/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d504850556e69742d627269676874677265656e3f7374796c653d666c61742d737175617265)[![codecov](https://camo.githubusercontent.com/3d97cb3516628b409be2b997a28fe4888acb79051f03e868a4c4362d323c59f7/68747470733a2f2f636f6465636f762e696f2f67682f6368616e67686f72697a6f6e2f7070732f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/changhorizon/pps)[![CI](https://github.com/changhorizon/pps/actions/workflows/ci.yml/badge.svg?style=flat-square)](https://github.com/changhorizon/pps/actions/workflows/ci.yml/badge.svg?style=flat-square)

A command-line tool that generates new PHP projects from pre-configured templates with essential development tools ready.

🚀 用法
----

[](#-用法)

你可以通过以下两种方式：

方法 1：通过 Composer 快速创建项目

```
composer create-project changhorizon/pps new-project
```

方法 2：使用独立的 .phar 可执行文件

```
wget https://github.com/changhorizon/pps/releases/latest/download/pps.phar
chmod +x pps.phar
./pps.phar init new-project
```

你也可以将 pps.phar 移动到 /usr/local/bin/pps 来实现全局使用：

```
sudo mv pps.phar /usr/local/bin/pps
pps init my-project
```

🧩 占位符替换
-------

[](#-占位符替换)

初始化项目后，您会在源文件中发现各种占位符字符串，例如：

- `pps.vendor`
- `pps.repo_name`
- `pps.repo_src_namespace`
- `pps.license_year`

完整占位符列表在 `.pps.placeholders.php` 文件中，您可以手动或使用脚本来搜索和替换它们。

### 🔍 搜索所有占位符

[](#-搜索所有占位符)

```
grep 'pps\.' -r .
```

### 🔄 替换示例

[](#-替换示例)

```
# Replace vendor name
find . -type f -exec sed -i 's/pps.vendor/changhorizon/g' {} \;
```

🔍 静态分析
------

[](#-静态分析)

使用 PHPStan 工具进行静态分析，确保代码的质量和一致性：

```
composer stan
```

🎯 代码风格
------

[](#-代码风格)

使用 PHP-CS-Fixer 工具检查代码风格：

```
composer cs:chk
```

使用 PHP-CS-Fixer 工具自动修复代码风格问题：

```
composer cs:fix
```

✅ 单元测试
------

[](#-单元测试)

执行 PHPUnit 单元测试：

```
composer test
```

执行 PHPUnit 单元测试并生成代码覆盖率报告：

```
composer test:coverage
```

🤝 贡献指南
------

[](#-贡献指南)

欢迎 Issue 与 PR，建议遵循以下流程：

1. Fork 仓库
2. 创建新分支进行开发
3. 提交 PR 前请确保测试通过、风格一致
4. 提交详细描述

📜 License
---------

[](#-license)

MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance94

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~61 days

Total

7

Last Release

29d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/191742660?v=4)[ChangHorizon](/maintainers/changhorizon)[@changhorizon](https://github.com/changhorizon)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/changhorizon-pps/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k193.1M3.0k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M23.7k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21764.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M195](/packages/sulu-sulu)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k44](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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