PHPackages                             leroy-merlin-br/larasniffer - 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. leroy-merlin-br/larasniffer

Abandoned → [squizlabs/php\_codesniffer](/?search=squizlabs%2Fphp_codesniffer)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

leroy-merlin-br/larasniffer
===========================

Larasniffer detect violations of a defined coding standard. It helps your code remains clean and consistent.

1.0.2(12y ago)1287.8k8[1 issues](https://github.com/leroy-merlin-br/larasniffer/issues)MITPHPPHP &gt;=5.4.0

Since Apr 15Pushed 11y ago15 watchersCompare

[ Source](https://github.com/leroy-merlin-br/larasniffer)[ Packagist](https://packagist.org/packages/leroy-merlin-br/larasniffer)[ RSS](/packages/leroy-merlin-br-larasniffer/feed)WikiDiscussions master Synced yesterday

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

LaraSniffer (Laravel Package)
=============================

[](#larasniffer-laravel-package)

Detect violations of a defined coding standard. It helps your code remains clean and consistent. Available options are: **PSR2**, **PSR1**, **Zend**, **PEAR**, **Squiz**, **PHPCS** and **MySource**.

[![Build Status](https://camo.githubusercontent.com/9c43d41549e8654ff47236e5945581941a55a3dbb854cee064f801b0020d463e/68747470733a2f2f6170692e7472617669732d63692e6f72672f6c65726f792d6d65726c696e2d62722f6c617261736e69666665722e706e67)](https://travis-ci.org/leroy-merlin-br/larasniffer)[![Coverage Status](https://camo.githubusercontent.com/22d5eee38d6072eaf95f3025356dbd8128b9ed18eaa5185540e621a200522306/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6c65726f792d6d65726c696e2d62722f6c617261736e69666665722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/leroy-merlin-br/larasniffer?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/0b4f32229b7148777fd7b6da02afbb0133c33c47823c981062f81ea14f560d37/68747470733a2f2f706f7365722e707567782e6f72672f6c65726f792d6d65726c696e2d62722f6c617261736e69666665722f762f737461626c652e706e67)](https://packagist.org/packages/leroy-merlin-br/larasniffer)[![Total Downloads](https://camo.githubusercontent.com/cbb4781b954044cf725f3010a4573b54e0418306b62d63d180809d0714681e5a/68747470733a2f2f706f7365722e707567782e6f72672f6c65726f792d6d65726c696e2d62722f6c617261736e69666665722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/leroy-merlin-br/larasniffer)[![License](https://camo.githubusercontent.com/80fb6c008ac1b28f6e209cb858ee9d28dace0d88da3bf4e48afcfdca675af144/68747470733a2f2f706f7365722e707567782e6f72672f6c65726f792d6d65726c696e2d62722f6c617261736e69666665722f6c6963656e73652e706e67)](http://opensource.org/licenses/MIT)

[![SensioLabsInsight](https://camo.githubusercontent.com/ba5d87dcf483b5208a9e95c8e66d428a87262e5520dd3e71c1adf47d8f8a7482/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34386339343832382d636130612d343964662d383137642d6661363763653331353039652f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/48c94828-ca0a-49df-817d-fa67ce31509e)

[![php artisan sniff](https://camo.githubusercontent.com/4f076ee881142e07f4589a2dccd2de60064993ec3f6d1d64f02b0ba12b0808db/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f7068705f6172746973616e5f736e6966662e706e67)](https://camo.githubusercontent.com/4f076ee881142e07f4589a2dccd2de60064993ec3f6d1d64f02b0ba12b0808db/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f31323530363133372f6c6962735f62756e646c65732f7068705f6172746973616e5f736e6966662e706e67)

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"leroy-merlin-br/larasniffer": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'LeroyMerlin\LaraSniffer\ServiceProvider'` to the end of the `$providers` array

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'LeroyMerlin\LaraSniffer\ServiceProvider',

),

```

Publish the configuration file:

```
php artisan config:publish leroy-merlin-br/larasniffer

```

Edit the configuration file `app/config/packages/leroy-merlin-br/larasniffer/config.php` to tweak the sniffer behavior.

### Usage

[](#usage)

```
php artisan sniff

```

Contributting
-------------

[](#contributting)

New contributions are always welcomed. Just open a pull request making sure that it contains **tests** and doc updates. Please check if the Travis-CI build is alright too.

[See all contributors](https://github.com/leroy-merlin-br/larasniffer/graphs/contributors)

License
-------

[](#license)

LaraSniffer is free software distributed under the terms of the MIT license

Aditional information
---------------------

[](#aditional-information)

Any issues, please [report here](https://github.com/leroy-merlin-br/larasniffer/issues)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~1 days

Total

3

Last Release

4407d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/f848446124bcd080151222405e6b1146f1c580fbbd70a9ec29fa2574a9da7cab?d=identicon)[svc-lmbr-boitata](/maintainers/svc-lmbr-boitata)

---

Top Contributors

[![Zizaco](https://avatars.githubusercontent.com/u/777635?v=4)](https://github.com/Zizaco "Zizaco (38 commits)")[![CasperLaiTW](https://avatars.githubusercontent.com/u/5094008?v=4)](https://github.com/CasperLaiTW "CasperLaiTW (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![GuilhermeGuitte](https://avatars.githubusercontent.com/u/1062859?v=4)](https://github.com/GuilhermeGuitte "GuilhermeGuitte (1 commits)")[![paulofreitas](https://avatars.githubusercontent.com/u/667360?v=4)](https://github.com/paulofreitas "paulofreitas (1 commits)")

---

Tags

laravelsniffpsr2psr1

### Embed Badge

![Health badge](/badges/leroy-merlin-br-larasniffer/health.svg)

```
[![Health](https://phpackages.com/badges/leroy-merlin-br-larasniffer/health.svg)](https://phpackages.com/packages/leroy-merlin-br-larasniffer)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[mpociot/laravel-test-factory-helper

Generate Laravel test factories from your existing models

933635.2k2](/packages/mpociot-laravel-test-factory-helper)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)

PHPackages © 2026

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