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 1mo ago

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 68% 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

1875d 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

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.6k](/packages/symfony-framework-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[laravel/pennant

A simple, lightweight library for managing feature flags.

57311.1M53](/packages/laravel-pennant)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M385](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M19](/packages/coenjacobs-mozart)

PHPackages © 2026

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