PHPackages                             dodger451/laravelcodechecker - 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. dodger451/laravelcodechecker

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

dodger451/laravelcodechecker
============================

Basic configurable phpmd, phpcs and lint setup with artisan support

1.0(7y ago)29681MITPHP

Since Dec 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dodger451/laravelcodechecker)[ Packagist](https://packagist.org/packages/dodger451/laravelcodechecker)[ Docs](https://github.com/dodger451/laravelcodechecker)[ RSS](/packages/dodger451-laravelcodechecker/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

LaravelCodeChecker
==================

[](#laravelcodechecker)

\[[![StyleCI](https://camo.githubusercontent.com/28be4768435976cfb141bfe51fd5d2563765a377a0e1d61f25c7a10119242d51/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135343930353139362f736869656c643f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/28be4768435976cfb141bfe51fd5d2563765a377a0e1d61f25c7a10119242d51/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135343930353139362f736869656c643f6272616e63683d6d6173746572)\]

Creates laravel artisan commands to validate your application's sourcecode with `php -l`, `phpmd` and `phpcs`.

Publishes predefined style rulesets into `config/` for customization.

Installation
------------

[](#installation)

Install via Composer

```
$ composer require --dev dodger451/laravelcodechecker
```

Then copy the default config files to /config by running

```
php artisan vendor:publish --tag=laravelcodechecker
```

This will create some rulesets for phpmd and phpcs in `config/`

```
config/
    laravelcodechecker.php
    phpcs/
        ruleset.xml
    phpmd/
        rulesets/
            cleancode.xml
            codesize.xml
            controversial.xml
            design.xml
            naming.xml
            unusedcode.xml
```

Adopt the rules in `phpcs/ruleset.xml` and `phpmd/rulesets/*.xml` to your preferences, the `cc:` commands will use them per default. To change the default rulefiles, modify `config/laravelcodechecker.php`

Usage
-----

[](#usage)

To validate the application with all checks, run

```
php artisan cc:all
```

This will run `php -l`, `phpmd` and `phpcs` on all .php files in `tests/` `routes/` `config/` and `app/`.

Alternatively, run each separately:

```
php artisan cc:phplint
php artisan cc:phpcs
php artisan cc:phpmd
```

Per default, each command will target `tests routes config app`. You can provide dirs and/or files as arguments to each `cc:` command, if you don't want to use the default targets in `config/laravelcodechecker.php`

E.g. to limit phpmd to the directories `tests/` and `app/` run

```
php artisan cc:phpmd tests app
```

To change the default targets per command, modify `laravelcodechecker.php`

### Travis

[](#travis)

Example `.travis.yml` for travis-ci.org

```
language: php
php:
  - '7.1'
  - '7.2'
  - nightly

install:
  - composer install

script:
  - php artisan cc:all

```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- \[david latotzky\]\[\]

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

\[link-styleci\]: [https://styleci.io/repos/154905196)\]](https://styleci.io/repos/154905196)%5D)\[link-author\]:

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

2720d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2358382?v=4)[dodger451](/maintainers/dodger451)[@dodger451](https://github.com/dodger451)

---

Top Contributors

[![dodger451](https://avatars.githubusercontent.com/u/2358382?v=4)](https://github.com/dodger451 "dodger451 (34 commits)")

---

Tags

laravelLaravelCodeChecker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dodger451-laravelcodechecker/health.svg)

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M282](/packages/laravel-horizon)[larastan/larastan

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

6.4k51.0M7.7k](/packages/larastan-larastan)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13186.2k8](/packages/youwe-testing-suite)[calebdw/larastan

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

15104.9k4](/packages/calebdw-larastan)

PHPackages © 2026

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