PHPackages                             zhouyl/phpfmt-tool - 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. zhouyl/phpfmt-tool

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

zhouyl/phpfmt-tool
==================

PHPFMT Command Tool

v1.0.0(8y ago)0259MITShellPHP &gt;=5.6.0

Since Sep 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zhouyl/phpfmt-tool)[ Packagist](https://packagist.org/packages/zhouyl/phpfmt-tool)[ Docs](https://github.com/zhouyl/phpfmt-tool)[ RSS](/packages/zhouyl-phpfmt-tool/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHPFMT-tool
===========

[](#phpfmt-tool)

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require zhouyl/phpfmt-tool
```

### Configuration file lookup order

[](#configuration-file-lookup-order)

1. $PWD/.phpfmt.ini (customize)
2. $HOME/.phpfmt/.phpfmt.ini (global)

### Customize the configuration file

[](#customize-the-configuration-file)

```
cp vendor/zhouyl/phpfmt-tool/.phpfmt.ini .
```

### Customize the default formatting directories (e.g. laravel 5.x)

[](#customize-the-default-formatting-directories-eg-laravel-5x)

```
echo "./app ./bootstrap ./database" > ./.phpfmtdirs
```

### Usage

[](#usage)

```
cd /workspace/myapplication
vendor/bin/phpfmt
```

Global Installation
-------------------

[](#global-installation)

```
wget --no-check-certificate https://github.com/zhouyl/phpfmt-tool/raw/master/phpfmt -O /usr/local/bin/phpfmt
chmod +x /usr/local/bin/phpfmt
cd /workspace/myaplication
phpfmt .
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/670a28674a5d1c4feb1817a0214b725395c08fbd0c41d5c4dc269a2f27f41620?d=identicon)[zhouyl](/maintainers/zhouyl)

---

Top Contributors

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

---

Tags

php-toolsphpfmt

### Embed Badge

![Health badge](/badges/zhouyl-phpfmt-tool/health.svg)

```
[![Health](https://phpackages.com/badges/zhouyl-phpfmt-tool/health.svg)](https://phpackages.com/packages/zhouyl-phpfmt-tool)
```

###  Alternatives

[slexx/laravel-webp

Detect webp support in laravel framework

104.6k](/packages/slexx-laravel-webp)

PHPackages © 2026

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