PHPackages                             yzen.dev/laravel-route-coverage - 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. yzen.dev/laravel-route-coverage

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

yzen.dev/laravel-route-coverage
===============================

Laravel route coverage

0.1.2(4y ago)213.8k2MITPHPPHP ^7.4 | ^8.0

Since Jun 8Pushed 4y ago3 watchersCompare

[ Source](https://github.com/yzen-dev/laravel-route-coverage)[ Packagist](https://packagist.org/packages/yzen.dev/laravel-route-coverage)[ RSS](/packages/yzendev-laravel-route-coverage/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (7)Versions (8)Used By (0)

LaravelRouteCoverage
====================

[](#laravelroutecoverage)

[![Packagist Version](https://camo.githubusercontent.com/dd8362143760ab9774fddb718c8966071903800f15316ad832a6b361133eaa8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797a656e2e6465762f6c61726176656c2d726f7574652d636f7665726167653f636f6c6f723d626c7565266c6162656c3d76657273696f6e)](https://camo.githubusercontent.com/dd8362143760ab9774fddb718c8966071903800f15316ad832a6b361133eaa8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797a656e2e6465762f6c61726176656c2d726f7574652d636f7665726167653f636f6c6f723d626c7565266c6162656c3d76657273696f6e)[![GitHub Workflow Status](https://camo.githubusercontent.com/53eb9cb250b0dfa218cc7b3d353e45f81053795102c266c75c70e8fae921a943/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f797a656e2d6465762f6c61726176656c2d726f7574652d636f7665726167652f52756e25323074657374733f6c6162656c3d7465737473266c6f676f3d676974687562)](https://camo.githubusercontent.com/53eb9cb250b0dfa218cc7b3d353e45f81053795102c266c75c70e8fae921a943/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f797a656e2d6465762f6c61726176656c2d726f7574652d636f7665726167652f52756e25323074657374733f6c6162656c3d7465737473266c6f676f3d676974687562)[![Coverage](https://camo.githubusercontent.com/e3a1768a945d49a188e7f9c073c34ad3a7c0ff07fc42f6f0fe4c15fcb5796cb0/68747470733a2f2f636f6465636f762e696f2f67682f797a656e2d6465762f6c61726176656c2d726f7574652d636f7665726167652f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d51414f3853544c504d49)](https://codecov.io/gh/yzen-dev/laravel-route-coverage)[![License](https://camo.githubusercontent.com/c554a09904153c52fe04eb2534f6ad39557867769562f52b46df232c8f46f3cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f797a656e2d6465762f6c61726176656c2d726f7574652d636f766572616765)](https://camo.githubusercontent.com/c554a09904153c52fe04eb2534f6ad39557867769562f52b46df232c8f46f3cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f797a656e2d6465762f6c61726176656c2d726f7574652d636f766572616765)[![Packagist Downloads](https://camo.githubusercontent.com/8f9b3bd005e3e2361b34e1872fd17ef24a418f3c0eb4579865fe4657eca4cf08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f797a656e2e6465762f6c61726176656c2d726f7574652d636f766572616765)](https://camo.githubusercontent.com/8f9b3bd005e3e2361b34e1872fd17ef24a418f3c0eb4579865fe4657eca4cf08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f797a656e2e6465762f6c61726176656c2d726f7574652d636f766572616765)[![Packagist Downloads](https://camo.githubusercontent.com/87e7940f0f407aa15446e23eb6e6bd095a46ed37e2c76decdce59453fc1d2e23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797a656e2e6465762f6c61726176656c2d726f7574652d636f766572616765)](https://camo.githubusercontent.com/87e7940f0f407aa15446e23eb6e6bd095a46ed37e2c76decdce59453fc1d2e23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797a656e2e6465762f6c61726176656c2d726f7574652d636f766572616765)

Laravel route coverage report.

With this package you can see the percentage of test coverage of your routes. Unless of course you do it through Laravel or PHPUnit tests.

### How it works?

[](#how-it-works)

The package will scan all your tests collecting all the http queries that are called in them. After that, it will compare the results with the routes of your application. Routes are taken only by the `App` prefix to exclude vendor routes.

📜 **Installation**
------------------

[](#scroll-installation)

The package can be installed via composer:

```
composer require yzen.dev/laravel-route-coverage --dev

```

📜 **Usage**
-----------

[](#scroll-usage)

Generate report:

```
php artisan route:coverage

```

After executing the command, the result of the report will be displayed in the console in the following form:

[![console-all-routes](https://user-images.githubusercontent.com/24630195/157137803-d73fe73e-a0fc-49a1-8eb3-aeb3daf43b30.png)](https://user-images.githubusercontent.com/24630195/157137803-d73fe73e-a0fc-49a1-8eb3-aeb3daf43b30.png)

### Possible options:

[](#possible-options)

```
php artisan route:coverage --group-by-controller
```

In this case, all the results will be grouped by controllers, displaying how many actions there are in the controller, and how many of them are covered by tests.

[![console-group-by-controller](https://user-images.githubusercontent.com/24630195/157138734-03639864-ea6c-45eb-8819-6dc732da9e3c.png)](https://user-images.githubusercontent.com/24630195/157138734-03639864-ea6c-45eb-8819-6dc732da9e3c.png)

```
php artisan route:coverage --html
```

Due to the `--html` option, you will also receive a generated report in the html page. The report will be located in the public directory `public/route-coverage`

[![html-report](https://user-images.githubusercontent.com/24630195/157138963-a6a0d24c-2020-4546-845a-130897cc9545.png)](https://user-images.githubusercontent.com/24630195/157138963-a6a0d24c-2020-4546-845a-130897cc9545.png)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~56 days

Recently: every ~70 days

Total

6

Last Release

1571d ago

Major Versions

0.0.1 → v7.x-dev2021-06-08

PHP version history (3 changes)0.0.1PHP ^7.2 || ^8.0

0.1PHP ^7.4 || ^8.0

0.1.1PHP ^7.4 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ca07942b4d955ee72b1bc92220b1bc7686708d0f109ee4abf81f8fbd30732c3?d=identicon)[yzen.dev](/maintainers/yzen.dev)

---

Top Contributors

[![yzen-dev](https://avatars.githubusercontent.com/u/24630195?v=4)](https://github.com/yzen-dev "yzen-dev (14 commits)")

---

Tags

coveragecoverage-reportlaravelroutes-coveragelaravelcoverageroute

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yzendev-laravel-route-coverage/health.svg)

```
[![Health](https://phpackages.com/badges/yzendev-laravel-route-coverage/health.svg)](https://phpackages.com/packages/yzendev-laravel-route-coverage)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M129](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M145](/packages/laravel-mcp)[larastan/larastan

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

6.5k55.4M8.2k](/packages/larastan-larastan)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M565](/packages/laravel-boost)

PHPackages © 2026

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