PHPackages                             sinsquare/phpdoc-formatter - 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. sinsquare/phpdoc-formatter

ActiveApplication

sinsquare/phpdoc-formatter
==========================

A tool to automatically fix phpDocumentor tags and annotations

0.1.3(5y ago)315.8k—3.2%MITPHPPHP ^5.6 || &gt;=7.0

Since May 25Pushed 5y ago2 watchersCompare

[ Source](https://github.com/SinSquare/phpdoc-formatter)[ Packagist](https://packagist.org/packages/sinsquare/phpdoc-formatter)[ RSS](/packages/sinsquare-phpdoc-formatter/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (6)Versions (13)Used By (0)

[![Build Status](https://camo.githubusercontent.com/00333440ba2d012db19eb82d5048f5b7229c887f0b8e7c0460a9d3616605f88b/68747470733a2f2f7472617669732d63692e6f72672f53696e5371756172652f706870646f632d666f726d61747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SinSquare/phpdoc-formatter)

A simple tool for formatting PHPDoc

The tool currently fixes:

- Idention through multiline comments
- Removing more than 2 empty lines
- Fixing PHPDoc format

Usage:

```
phpdoc-formatter [--option value] [/path/to/project ...]

```

Options:

```
  --exclude (-e)    Exclude path(s)
                    ex: --exclude vendor,library
  --version (-v)    Displays the version

  --ident (-i)      Sets the ident character(s)
                    ex: --ident "    "
  --newline (-n)    Sets the newline character(s)
                    ex: --ident "\r\n"
  --help (-h)       Displays this message

```

Example:

Before:

```
/**
 * @SWG\Info(
* title="API",
 *    version="1.0"
 * )
 *
 *    @SWG\Swagger(
 *   host=API_HOST,
 * basePath=API_BASE_PATH
 *   )
 *
 *   @SWG\SecurityScheme(
 *  securityDefinition="JWTTokenAuth",
 *    type="apiKey",
 *  in="header",
 *     name="Authorization",
 *   description=API_DEFAULT_TOKEN,
 *   )
 */

```

After:

```
/**
 * @SWG\Info(
 *     title="API",
 *     version="1.0"
 * )
 *
 * @SWG\Swagger(
 *     host=API_HOST,
 *     basePath=API_BASE_PATH
 * )
 *
 * @SWG\SecurityScheme(
 *     securityDefinition="JWTTokenAuth",
 *     type="apiKey",
 *     in="header",
 *     name="Authorization",
 *     description=API_DEFAULT_TOKEN,
 * )
 */

```

###  Health Score

31

—

LowBetter than 70% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Recently: every ~257 days

Total

11

Last Release

1828d ago

PHP version history (2 changes)0.0.1PHP ^5.6 || &gt;=7.0 &lt;7.3

0.1.2PHP ^5.6 || &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/88583e063973f17c93b1aa30054cd843d58fbacaaa566ac2b4b2ed9ea903cffd?d=identicon)[SinSquare](/maintainers/SinSquare)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sinsquare-phpdoc-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/sinsquare-phpdoc-formatter/health.svg)](https://phpackages.com/packages/sinsquare-phpdoc-formatter)
```

###  Alternatives

[phpdocumentor/phpdocumentor

Documentation Generator for PHP

4.4k3.1M824](/packages/phpdocumentor-phpdocumentor)[bolt/core

🧿 Bolt Core

585141.2k48](/packages/bolt-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.0M341](/packages/shopware-core)[bartlett/php-compatinfo

Find out the minimum version and the extensions required for a piece of code to run

37798.6k4](/packages/bartlett-php-compatinfo)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222162.1k1](/packages/lmc-steward)[roadiz/roadiz

Roadiz is a modern CMS based on a polymorphic content-schema system which can handle many types of services. It’s based on Symfony component and Doctrine ORM for maximum performances and security.

3759.3k6](/packages/roadiz-roadiz)

PHPackages © 2026

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