PHPackages                             jspaetzel/phpstyle - 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. jspaetzel/phpstyle

AbandonedArchivedComposer-plugin

jspaetzel/phpstyle
==================

PHPStyle - Make prettier PHP fast

1.7.0(2y ago)5655MITPHPPHP ^7.3|^8.0

Since Jan 20Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (18)Used By (0)

PHPStyle ✨
==========

[](#phpstyle-)

A slim, opinionated wrapper around PHPCSFixer.

This comes preloaded with sane style choices for most PHP applications. You should be able to safely run it on most code out of the box.

🏗 Setup
-------

[](#-setup)

1. Require the package

```
composer require jspaetzel/phpstyle --dev
```

> 🗒 Note: This package is a [composer plugin](https://getcomposer.org/doc/articles/plugins.md), when installed it will create an initial `phpstyle.neon` file and a managed `.php-cs-fixer.dist.php` file in the root of your project. You may be prompted before this action takes place.

2. Review the `phpstyle.neon` configuration file. Feel free to make changes to this file at any time.
3. Run php-cs-fixer to fix your code

```
./vendor/bin/php-cs-fixer fix
```

> 🗒 Note: php-cs-fixer is integrated with PHPStorm and other editors and so PHPStyle should work with them as well.

That's it, your code is styled!

⚙ Configuration
---------------

[](#-configuration)

The configuration for [PHPStyle](https://github.com/jspaetzel/phpstyle) takes inspiration from [PHPStan](https://github.com/phpstan/phpstan) and is a very simple neon configuration file. Just adjust your paths and php versions if needed, and you'll be good to go.

```
parameters:
    php: 7.1
    risky: false
    paths:
        - src
        - tests
    excludePaths:
        - src/path/you/want/to/skip
        - src/or/a/file-to-skip.php
```

> Want to enable more rules? change `risky: true` and then see what happens. But watch out, these are risky! ⚠

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~87 days

Total

17

Last Release

1055d ago

PHP version history (2 changes)1.0.0PHP ^7.1|^8.0

1.4.1PHP ^7.3|^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

codestylephpphpcsphpcsfixerphpstyleprettierprettier-php

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jspaetzel-phpstyle/health.svg)

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

###  Alternatives

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[roots/wordpress-core-installer

A Composer custom installer to handle installing WordPress as a dependency

4115.6M19](/packages/roots-wordpress-core-installer)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)

PHPackages © 2026

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