PHPackages                             schnittstabil/sugared-phpmd - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. schnittstabil/sugared-phpmd

Abandoned → [sugared-rim/phpmd](/?search=sugared-rim%2Fphpmd)Library[PSR &amp; Standards](/categories/psr-standards)

schnittstabil/sugared-phpmd
===========================

PHPMD sweetened with ease

2.1.0(8y ago)1217MITPHPPHP &gt;=5.6.0

Since Apr 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/schnittstabil/sugared-phpmd)[ Packagist](https://packagist.org/packages/schnittstabil/sugared-phpmd)[ RSS](/packages/schnittstabil-sugared-phpmd/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

SugaredRim\\PHPMD [![Build Status](https://camo.githubusercontent.com/ed89371ede511b096ede15b157effa4293f9a32a1139c3d84ced183b5e95ca4f/68747470733a2f2f7472617669732d63692e6f72672f737567617265642d72696d2f7068706d642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sugared-rim/phpmd) [![Coverage Status](https://camo.githubusercontent.com/90500eb73f77f54b8042e64e75001af3e59787e39881d57d4932fd6be419b112/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f737567617265642d72696d2f7068706d642f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/sugared-rim/phpmd?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/bd11a76c18f914b90136f7ecae7f86e660de4874be4edd2965b936b75c46663c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737567617265642d72696d2f7068706d642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sugared-rim/phpmd/?branch=master) [![Code Climate](https://camo.githubusercontent.com/6703289319799fd7a353cce2544e5ab712578d9896adb944291b639a9b223a0e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f737567617265642d72696d2f7068706d642f6261646765732f6770612e737667)](https://codeclimate.com/github/sugared-rim/phpmd)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#sugaredrimphpmd----)

[![SensioLabsInsight](https://camo.githubusercontent.com/0c8938a6887ff52ba6ca1aa7b0bfbc2d2f672fc3bf5a4d26950915e078d054b2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63633034303333632d333563302d343135322d393038612d3433303463303139633730382f6269672e706e67)](https://insight.sensiolabs.com/projects/cc04033c-35c0-4152-908a-4304c019c708)

> PHPMD sweetened with ease 🍒

SugaredRim\\PHPMD takes an opinionated view of code style checking with [PHPMD](https://github.com/phpmd/phpmd), it is preconfigured to get you up and running as quickly as possible.

Install
-------

[](#install)

```
$ composer require --dev sugared-rim/phpmd

```

Usage
-----

[](#usage)

Instead of running `phpmd` with all its options, just run `sugared-rim-phpmd` - that's it:

```
{
    ...
    "require-dev": {
        "sugared-rim/phpmd": ...
    },
    "scripts": {
        "lint": "sugared-rim/phpmd"
    }
}
```

Configuration
-------------

[](#configuration)

You may overwrite some options by putting it in your `composer.json`.

Some of the default settings:

```
{
    ...
    "scripts": {
        "lint": "sugared-rim/phpmd"
    },
    "extra": {
        "sugared-rim/phpmd": {
            "inputPath": "src,tests",
            "reportFormat": "text",
            "ruleSets": "cleancode,codesize,controversial,design,naming,unusedcode"
        }
    }
}
```

License
-------

[](#license)

MIT © [Michael Mayer](http://schnittstabil.de)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3006d ago

Major Versions

0.2.0 → 1.0.02016-09-26

1.0.0 → 2.0.02016-11-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6059032?v=4)[Michael Mayer](/maintainers/schnittstabil)[@schnittstabil](https://github.com/schnittstabil)

---

Top Contributors

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

---

Tags

standardsphpmdpmdmess detectionmess detectorsugaredpreconfiguredsugared-rim

### Embed Badge

![Health badge](/badges/schnittstabil-sugared-phpmd/health.svg)

```
[![Health](https://phpackages.com/badges/schnittstabil-sugared-phpmd/health.svg)](https://phpackages.com/packages/schnittstabil-sugared-phpmd)
```

###  Alternatives

[phpmd/phpmd

PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.

2.4k112.4M5.3k](/packages/phpmd-phpmd)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)

PHPackages © 2026

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