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

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

hizpark/pps
===========

PHP Project Scaffold – minimal and ready to code

v0.1.2(8mo ago)01MITPHPPHP &gt;=8.2CI passing

Since May 11Pushed 8mo ago1 watchersCompare

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

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

PPS
===

[](#pps)

> PHP Project Scaffold – minimal and ready to code

[![License](https://camo.githubusercontent.com/805d29ee50046c485151ba3f801a315ec366a314dbc4a5c53d551c8920b975f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f68697a7061726b2f7070733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/805d29ee50046c485151ba3f801a315ec366a314dbc4a5c53d551c8920b975f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f68697a7061726b2f7070733f7374796c653d666c61742d737175617265)[![Latest Version](https://camo.githubusercontent.com/a66b5cfc714b5e52fd0a3daff6b4267a9583c560c31abe8542c3ed9fb8e23c67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68697a7061726b2f7070733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a66b5cfc714b5e52fd0a3daff6b4267a9583c560c31abe8542c3ed9fb8e23c67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68697a7061726b2f7070733f7374796c653d666c61742d737175617265)[![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/b2d542913c695a3598f82401a25ba603142e3b885a3f8a5783324951105ac4dc/68747470733a2f2f636f6465636f762e696f2f67682f68697a7061726b2f7070732f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/hizpark/pps)[![CI](https://github.com/hizpark/pps/actions/workflows/ci.yml/badge.svg?style=flat-square)](https://github.com/hizpark/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 hizpark/pps new-project
```

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

```
wget https://github.com/hizpark/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/hizpark/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

28

—

LowBetter than 54% of packages

Maintenance59

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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 ~57 days

Total

3

Last Release

257d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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