PHPackages                             lemaur/toolbox - 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. lemaur/toolbox

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

lemaur/toolbox
==============

Toolbox full of useful packages to keep your Laravel project compliant with your coding standards.

4.2.0(3y ago)46.6k↓50%[3 PRs](https://github.com/leMaur/toolbox/pulls)MITPHPPHP ^8.1

Since May 2Pushed 3y agoCompare

[ Source](https://github.com/leMaur/toolbox)[ Packagist](https://packagist.org/packages/lemaur/toolbox)[ Docs](https://github.com/lemaur/toolbox)[ GitHub Sponsors](https://github.com/lemaur)[ RSS](/packages/lemaur-toolbox/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (25)Versions (22)Used By (0)

Tools for Artisan!
==================

[](#tools-for-artisan)

Toolbox full of useful packages to keep your **Laravel** project compliant with your coding standards.
It provides a minimum configuration to help you start with `static analysis`, `code styling` and `testing`.

[![Latest Version on Packagist](https://camo.githubusercontent.com/b9887e3946e6f852d9e3b7f140c93a7e657e496d8047948d6e65eab8feada0f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656d6175722f746f6f6c626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lemaur/toolbox)[![Total Downloads](https://camo.githubusercontent.com/7b50c6359f2bdd7c86ec6bd72d09ee9e350630b89dc58ab2fec635e823b9ea4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c656d6175722f746f6f6c626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lemaur/toolbox)[![License](https://camo.githubusercontent.com/590ddd399fc4610e2a0daeb6a12d238ddec3cbbe6d57480e55731d40183e0407/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c656d6175722f746f6f6c626f782e7376673f7374796c653d666c61742d73717561726526636f6c6f723d79656c6c6f77)](https://github.com/leMaur/toolbox/blob/master/LICENSE.md)[![GitHub PHPMD](https://camo.githubusercontent.com/0d2f43c4a68e9c5a91ccebcb756ecd0582aa7a2b6651cb44c591d60c0633b9f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c656d6175722f746f6f6c626f782f7068706d642e796d6c3f6c6162656c3d5048504d44267374796c653d666c61742d737175617265)](https://github.com/leMaur/toolbox/actions/workflows/phpmd.yml)[![GitHub Sponsors](https://camo.githubusercontent.com/67130ea26c0cdbb7c18af5c1fd1c7995f000bc3da607abffed1e39d789f48b2f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f6c656d6175723f7374796c653d666c61742d73717561726526636f6c6f723d656134616161)](https://github.com/sponsors/leMaur)[![Trees](https://camo.githubusercontent.com/f12f2059f308501188008a8639ea876a9d8f8f3ce4047ea60b328985fc08b312/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f636f6c6f723d79656c6c6f77677265656e267374796c653d666c61742d737175617265266c6162656c3d54726565732671756572793d2532342e746f74616c2675726c3d68747470732533412532462532467075626c69632e6f66667365742e656172746825324675736572732532466c656d6175722532467472656573)](https://ecologi.com/lemaur?r=6012e849de97da001ddfd6c9)

What's Included
---------------

[](#whats-included)

- [Laravel Debugbar](https://github.com/barryvdh/laravel-debugbar)
- [Laravel Ide Helper](https://github.com/barryvdh/laravel-ide-helper)
- [Analyzer](https://github.com/GrahamCampbell/Analyzer)
- [Infection](https://github.com/infection/infection)
- [Phpunit SpeedTrap](https://github.com/johnkary/phpunit-speedtrap)
- [Laravel Dusk](https://github.com/laravel/dusk)
- [Laravel Sail](https://github.com/laravel/sail)
- [Larastan](https://github.com/nunomaduro/larastan)
- [Pest](https://pestphp.com)
- [Phpunit](https://github.com/sebastianbergmann/phpunit)
- [Rector](https://github.com/rectorphp/rector)
- [Security Advisories](https://github.com/Roave/SecurityAdvisories)
- [Laravel Ray](https://github.com/spatie/laravel-ray)

Support Me
----------

[](#support-me)

Hey folks,

Do you like this package? Do you find it useful, and it fits well in your project?

I am glad to help you, and I would be so grateful if you considered supporting my work.

You can even choose 😃:

- You can [sponsor me 😎](https://github.com/sponsors/leMaur) with a monthly subscription.
- You can [buy me a coffee ☕ or a pizza 🍕](https://github.com/sponsors/leMaur?frequency=one-time&sponsor=leMaur) just for this package.
- You can [plant trees 🌴](https://ecologi.com/lemaur?r=6012e849de97da001ddfd6c9). By using this link we will both receive 30 trees for free and the planet (and me) will thank you.
- You can "Star ⭐" this repository (it's free 😉).

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

[](#installation)

Install the package via composer:

```
composer require lemaur/toolbox --dev
```

if you still using php8.0 you should use:

```
composer require "lemaur/toolbox:^3.2" --dev
```

Launch the installation:

> Be careful, this package was created to be used on a fresh new Laravel project.
> Commands listed below will OVERWRITE your existing files!

If you install this package in a fresh Laravel installation, you can simply run:

```
php artisan toolbox:install
```

⬇️ configure only Pest and Dusk test suites. [Those files will be overwritten](/src/Commands/PublishCommand.php#L42).

```
php artisan toolbox:install --test-suites
```

Otherwise, you can install only the group of files you need without test suites:

⬇️ will overwrite [phpstan.neon](/src/Commands/PublishCommand.php#L23).

```
php artisan toolbox:install --only="static-analysis"
```

or you can specify multiple values, ⬇️ will overwrite [phpstan.neon](/src/Commands/PublishCommand.php#L23) and [pint.json](/src/Commands/PublishCommand.php#L27).

```
php artisan toolbox:install --only="static-analysis" --only="code-style"
```

Available values for the `--only` option:

```
- static-analysis
- code-style
- refactor
- tests
- common
```

Add those scripts to your `composer.json`:

```
"scripts": {
    "ide-helper": [
        "@php artisan ide-helper:models --write-mixin --reset",
        "@php artisan ide-helper:generate",
        "@php artisan ide-helper:eloquent",
        "@php artisan ide-helper:meta"
    ],
    "analyse": "./vendor/bin/phpstan analyse --memory-limit=2G",
    "refactor": "./vendor/bin/rector process  --memory-limit=2G",
    "format": "./vendor/bin/pint",
    "test": "./vendor/bin/pest --exclude-group=e2e",
    "test:fast": "./vendor/bin/pest --exclude-group=e2e --parallel",
    "test:coverage": "./vendor/bin/pest --exclude-group=e2e --coverage --min=50 --coverage-html=.coverage --coverage-clover=coverage.xml",
    "test:e2e": "@php artisan pest:dusk",
    "test:mutation": [
        "Composer\\Config::disableProcessTimeout",
        "XDEBUG_MODE=coverage vendor/bin/infection --show-mutations --threads=4 --only-covering-test-cases --min-msi=25 --min-covered-msi=85 --test-framework=pest --test-framework-options='--configuration=phpunit.xml --exclude-group=e2e'"
    ]
}
```

Allow plugins to be executed by Composer, by putting these lines on `composer.json`:

```
"config": {
    ...
    "allow-plugins": {
        "phpstan/extension-installer": true,
        "pestphp/pest-plugin": true,
        "infection/extension-installer": true
    }
}
```

Available Commands
------------------

[](#available-commands)

Generate PHPDoc for your models and
other (helpful for your IDE and static analysis tools) [for more info](https://github.com/barryvdh/laravel-ide-helper#usage)

```
composer ide-helpers
```

Run code refactoring [for more info](https://github.com/rectorphp/rector)

```
composer refactor
```

Run code style formatting [for more info](https://github.com/FriendsOfPHP/PHP-CS-Fixer)

```
composer format
```

Run static analysis [for more info](https://github.com/nunomaduro/larastan)

```
composer analyse
```

Run tests [for more info](https://pestphp.com)

```
composer test
```

Run tests with coverage [for more info](https://pestphp.com/docs/coverage)

```
composer test:coverage
```

Run e2e tests [for more info](https://pestphp.com/docs/plugins/laravel#laravel-dusk)

```
composer test:e2e
```

Run mutation tests [for more info](https://infection.github.io/guide)

```
composer test:mutation
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Maurizio](https://github.com/lemaur)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

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

Every ~35 days

Recently: every ~65 days

Total

18

Last Release

1237d ago

Major Versions

1.2.1 → 2.0.02021-05-08

2.5.0 → 3.0.02022-02-03

3.2.1 → 4.0.02022-11-21

PHP version history (2 changes)1.0.0PHP ^8.0

4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2696e190d36ed3a6809d954e3ae2153f969be340ef9b188f8a02bdc98b52f6c7?d=identicon)[leMaur](/maintainers/leMaur)

---

Top Contributors

[![leMaur](https://avatars.githubusercontent.com/u/2118799?v=4)](https://github.com/leMaur "leMaur (69 commits)")

---

Tags

code-standardscode-stylecoveragedusklarastanlaravellaravel-frameworkpestphp-cs-fixerphpstanphpunitrectorstatic-analysistesttestingunit-testtestingpestPHPStanlaravelstatic analysisCode styletestsToolboxrefactorrectorphp-cs-fixerdusklemaur

### Embed Badge

![Health badge](/badges/lemaur-toolbox/health.svg)

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

###  Alternatives

[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[mrpunyapal/rector-pest

Rector upgrade rules for Pest - refactoring and best practices for Pest testing framework

4717.6k18](/packages/mrpunyapal-rector-pest)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

2835.5k](/packages/code-distortion-adapt)

PHPackages © 2026

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