PHPackages                             devanoxltd/laravel-revive - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. devanoxltd/laravel-revive

ActivePackage[Utility &amp; Helpers](/categories/utility)

devanoxltd/laravel-revive
=========================

Automatic configuration for Laravel apps to apply Devanox's standard linting &amp; code standards.

v3.4.1(1mo ago)10251MITPHPPHP ^8.3CI passing

Since Jan 10Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/devanoxltd/revive)[ Packagist](https://packagist.org/packages/devanoxltd/laravel-revive)[ Docs](https://github.com/devanoxltd/laravel-revive)[ GitHub Sponsors](https://github.com/devanoxltd)[ RSS](/packages/devanoxltd-laravel-revive/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (19)Versions (15)Used By (0)

[![Project Banner](https://raw.githubusercontent.com/devanoxltd/revive/main/banner.png)](https://raw.githubusercontent.com/devanoxltd/revive/main/banner.png)

Laravel Revive
==============

[](#laravel-revive)

Automatically apply Devanox's default code style for Laravel apps.

Revive is built on top of the following tools:

- TLint: lints Laravel and PHP code for issues not covered by other tools
    - using the default `Devanox` preset
- PHP\_CodeSniffer: sniffs issues that can't be fixed automatically
    - using the `Devanox` preset which is mostly PSR1 with some Devanox-specific rules
- PHP CS Fixer: adds custom rules not supported by Laravel Pint
    - `CustomOrderedClassElementsFixer` Devanox-specific order of class elements
- Pint: Laravel's code style rules (with a few Devanox specific customizations)
    - using the default `Laravel` preset with some Devanox-specific rules

You can view a list of the compiled rules and examples of what they do in the [style guide](./style-guide.md).

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

[](#installation)

You can install the package via composer:

```
composer require devanoxltd/laravel-revive --dev
```

Optionally you can publish a GitHub Actions config:

```
./vendor/bin/revive github-actions
```

Or you can publish Husky Hooks:

```
./vendor/bin/revive husky-hooks
```

If you are using a containerized environment and do not have PHP installed locally, you can use the `--env` option to specify it:

```
./vendor/bin/revive husky-hooks --env=ddev
```

Supported environments are `ddev`, `warden` `lando`, and `sail`.

Usage
-----

[](#usage)

To lint everything at once:

```
./vendor/bin/revive lint
```

To fix everything at once:

```
./vendor/bin/revive fix
```

To revive only files that have uncommitted changes according to Git, you may use the `--dirty` option:

```
./vendor/bin/revive lint --dirty
#or
./vendor/bin/revive fix --dirty
```

To view all available commands:

```
./vendor/bin/revive
#or
./vendor/bin/revive commands
```

### Usage with Sail

[](#usage-with-sail)

```
./vendor/bin/sail php ./vendor/bin/revive
```

Alternatively, Sail has a bin [script](https://github.com/laravel/sail/blob/1.x/bin/sail#L211) that eases the execution of package binaries, so you do the same thing like this:

```
./vendor/bin/sail bin revive
```

Customizing
-----------

[](#customizing)

If you need to include or exclude files or directories for each tool you can create a `revive.json` config file in your project root:

```
{
    "include": [
        "bin",
        "scripts",
        "src",
        "tests"
    ],
    "exclude": [
        "tests/fixtures",
        "**/folderToExclude/**"
    ]
}
```

To run additional scripts as part of Revive first add them to `revive.json` as part of `scripts` separated into `lint` and `fix`.

The key is the name of the command (used with the `--using` flag), and the value is an array of arguments passed to [`Symfony\Component\Process\Process`](https://symfony.com/doc/current/components/process.html).

```
{
    "scripts": {
        "lint": {
            "phpstan": ["./vendor/bin/phpstan", "analyse"]
        }
    },
    "processTimeout": 120
}
```

Revive will pick these up automatically when running either `lint` or `fix`. By default, additional scripts timeout after 60 seconds. You can overwrite this setting using the `processTimeout` key.

To customize which tools Revive runs, or the order in which they are executed you can use the `--using` flag and supply a comma-separated list of commands:

```
./vendor/bin/revive lint --using="phpstan,tlint,pint"
```

### TLint

[](#tlint)

Create a `tlint.json` file in your project root. Learn more in the [TLint documentation](https://github.com/tighten/tlint#configuration).

### PHP\_CodeSniffer

[](#php_codesniffer)

Create a `.phpcs.xml.dist` file in your project root with the following:

```

    app
    config
    database
    public
    resources
    routes
    tests

```

Now you can add customizations below the `` line or even disable the Devanox rule to use your own ruleset. Learn more in this [introductory article](https://ncona.com/2012/12/creating-your-own-phpcs-standard/).

### PHP CS Fixer

[](#php-cs-fixer)

Create a `.php-cs-fixer.dist.php` file in your project root with the contents from [Revive's `.php-cs-fixer.dist.php`](standards/.php-cs-fixer.dist.php) file. Learn more in the [PHP CS Fixer documentation](https://cs.symfony.com/doc/config.html).

### Pint

[](#pint)

Create a `pint.json` file in your project root, you can use [Revive's `pint.json`](standards/pint.json) file as a starting point. Learn more in the [Pint documentation](https://laravel.com/docs/pint#configuring-pint).

GitHub Action
-------------

[](#github-action)

There's a [GitHub Action](https://github.com/devanoxltd/revive-action) you use to clean-up your workflows.

> **Warning** Heads Up! Workflows that commit to your repo will stop any currently running workflows and not trigger another workflow run.

One solution is to run your other workflows after Revive has completed by updating the trigger on those workflows:

```
on:
  # Commits made in Revive Fix will not trigger any workflows
  # This workflow is configured to run after Revive finishes
  workflow_run:
    workflows: ["Revive Fix"]
    types:
      - completed
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Matt Stauffer](https://github.com/mattstauffer)
- [Anthony Clark](https://github.com/driftingly)
- [Tom Witkowski](https://github.com/devgummibeer) - much of the original idea and syntax for this was inspired by his [`elbgoods/ci-test-tools`](https://github.com/elbgoods/ci-test-tools) package
- [All Contributors](../../contributors)
- [Tighten](https://github.com/tighten) This package is a fork of [Tighten's `duster`](https://github.com/tighten/duster)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance92

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 71% 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 ~62 days

Recently: every ~116 days

Total

14

Last Release

42d ago

Major Versions

v1.0.3 → v2.0.02024-06-10

v2.0.0 → v3.0.02024-07-18

PHP version history (2 changes)v1.0.0PHP ^8.2

v3.2.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5039d3102378ab6c20d60bf6fe8e864b7ee984e6a96c6f0cfcb48bc070574cf8?d=identicon)[mrchetan](/maintainers/mrchetan)

---

Top Contributors

[![driftingly](https://avatars.githubusercontent.com/u/194221?v=4)](https://github.com/driftingly "driftingly (272 commits)")[![mattstauffer](https://avatars.githubusercontent.com/u/151829?v=4)](https://github.com/mattstauffer "mattstauffer (60 commits)")[![mr-chetan](https://avatars.githubusercontent.com/u/56998650?v=4)](https://github.com/mr-chetan "mr-chetan (13 commits)")[![rissajackson](https://avatars.githubusercontent.com/u/57572484?v=4)](https://github.com/rissajackson "rissajackson (7 commits)")[![ArielMejiaDev](https://avatars.githubusercontent.com/u/31971074?v=4)](https://github.com/ArielMejiaDev "ArielMejiaDev (6 commits)")[![msamgan](https://avatars.githubusercontent.com/u/29948727?v=4)](https://github.com/msamgan "msamgan (6 commits)")[![tonysm](https://avatars.githubusercontent.com/u/1178621?v=4)](https://github.com/tonysm "tonysm (5 commits)")[![musa11971](https://avatars.githubusercontent.com/u/21341801?v=4)](https://github.com/musa11971 "musa11971 (3 commits)")[![Gummibeer](https://avatars.githubusercontent.com/u/6187884?v=4)](https://github.com/Gummibeer "Gummibeer (2 commits)")[![ThaKladd](https://avatars.githubusercontent.com/u/470556?v=4)](https://github.com/ThaKladd "ThaKladd (2 commits)")[![jonsugar](https://avatars.githubusercontent.com/u/1974648?v=4)](https://github.com/jonsugar "jonsugar (2 commits)")[![jerredhurst](https://avatars.githubusercontent.com/u/13042804?v=4)](https://github.com/jerredhurst "jerredhurst (1 commits)")[![FrankGREV](https://avatars.githubusercontent.com/u/136092258?v=4)](https://github.com/FrankGREV "FrankGREV (1 commits)")[![Rigby90](https://avatars.githubusercontent.com/u/575561?v=4)](https://github.com/Rigby90 "Rigby90 (1 commits)")[![benholmen](https://avatars.githubusercontent.com/u/1056188?v=4)](https://github.com/benholmen "benholmen (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

---

Tags

code-standardscodequalityformatterlaravellaravel-packagelinterphpstandardphplaravelCode stylerevivedevanox

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/devanoxltd-laravel-revive/health.svg)

```
[![Health](https://phpackages.com/badges/devanoxltd-laravel-revive/health.svg)](https://phpackages.com/packages/devanoxltd-laravel-revive)
```

###  Alternatives

[amranidev/laracombee

Recommendation system for laravel

11636.7k1](/packages/amranidev-laracombee)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)[wujunze/money-wrapper

MoneyPHP Wrapper

113.8k](/packages/wujunze-money-wrapper)

PHPackages © 2026

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