PHPackages                             marcelsud/diffcs - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. marcelsud/diffcs

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

marcelsud/diffcs
================

Run PHP Code Sniffer in pull requests

v0.2.1(8y ago)10392[5 issues](https://github.com/marcelsud/diffcs/issues)BSD StylePHP

Since Mar 17Pushed 8y ago4 watchersCompare

[ Source](https://github.com/marcelsud/diffcs)[ Packagist](https://packagist.org/packages/marcelsud/diffcs)[ Docs](https://github.com/marcelsud/diffcs)[ RSS](/packages/marcelsud-diffcs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (10)Used By (0)

DiffCS
======

[](#diffcs)

A tool to perform code sniffer checks of your pull requests on Github.

How To Install
--------------

[](#how-to-install)

You can grab a copy of marcelsud/diffcs in either of the following ways:

### As a phar (recommended)

[](#as-a-phar-recommended)

You can simply download a pre-compiled and ready-to-use version as a Phar to any directory. Simply download the latest diffcs.phar file from our [releases page](https://github.com/marcelsud/diffcs/releases):

```
curl -LO https://github.com/marcelsud/diffcs/releases/download/v0.2.1/diffcs.phar
php diffcs.phar --help

```

Optionally you can install it globally by adding it to your bin folder:

```
chmod +x diffcs.phar
mv diffcs.phar /usr/local/bin/diffcs

```

### Via composer:

[](#via-composer)

```
composer global require "marcelsud/diffcs":"dev-master"
sudo ln -nfs ~/.composer/vendor/bin/diffcs /usr/local/bin/diffcs

```

### Via docker:

[](#via-docker)

```
docker run --rm -it marcelsud/diffcs --help

```

How To Use
----------

[](#how-to-use)

### For public repositories:

[](#for-public-repositories)

Run the following command: `diffcs / `, where:

- `` is the corporation/user behind the project;
- `` is the project name on Github;
- `` is the pull request id, created by Github.

**Example**:

```
diffcs symfony/symfony 13342

```

### For private repositories:

[](#for-private-repositories)

#### Authenticate with username and password

[](#authenticate-with-username-and-password)

Execute following command: `diffcs /  --github-user=`, where:

- `` is your Github username.
- the password will be asked afterwards and is only required check private repositories.

**Example**:

```
diffcs symfony/symfony 13342 --github-user=yourusername

```

#### Authenticate with Github token

[](#authenticate-with-github-token)

Execute following command: `diffcs /  --github-token=`, where:

- you can generate the `` in [your Github account settings](https://github.com/settings/tokens/new?scopes=repo&description=Diffcs%20token)).

**Example**:

```
diffcs symfony/symfony 13342 --github-token=256199c24f9132f84e9bb06271ff65a3176a2f05

```

[![Image](output.png)](output.png)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~309 days

Total

4

Last Release

3150d ago

### Community

Maintainers

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

---

Top Contributors

[![marcelsud](https://avatars.githubusercontent.com/u/380226?v=4)](https://github.com/marcelsud "marcelsud (11 commits)")[![devdrops](https://avatars.githubusercontent.com/u/1259313?v=4)](https://github.com/devdrops "devdrops (3 commits)")

---

Tags

code-snifferphp

### Embed Badge

![Health badge](/badges/marcelsud-diffcs/health.svg)

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[maglnet/composer-require-checker

CLI tool to analyze composer dependencies and verify that no unknown symbols are used in the sources of a package

99810.9M671](/packages/maglnet-composer-require-checker)

PHPackages © 2026

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