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

ActiveLibrary

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 2d 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 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

2673d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d80ae6a8d34a1d4fdf619879589528decdcdf4630ab83e41c935a4188dddbb6?d=identicon)[dodger451](/maintainers/dodger451)

---

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.2k84.2M225](/packages/laravel-horizon)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/envoy

Elegant SSH tasks for PHP.

1.6k5.5M18](/packages/laravel-envoy)[laravel/installer

Laravel application installer.

83610.7M20](/packages/laravel-installer)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)

PHPackages © 2026

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