PHPackages                             tobya/devroute - 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. tobya/devroute

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

tobya/devroute
==============

Create a dev route file that is hidden in production

V1.1(4y ago)24.2k↑150%[1 issues](https://github.com/tobya/DevRoute/issues)MITPHP

Since May 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tobya/DevRoute)[ Packagist](https://packagist.org/packages/tobya/devroute)[ RSS](/packages/tobya-devroute/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

DevRoute
========

[](#devroute)

A Laravel package.

Adds a `/dev` routes routing file `devroutes.php` where you can store routes that are available for local testing, but unavailable in production.

All the routes will be available if

> APP\_ENV=local

but **unavailable** if your

> APP\_ENV=production

This is very useful when you have testing routes that you definitely dont want available when running in production.

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

[](#installation)

```
 composer require tobya/devroute

```

Once installed will create a file `routes/devroutes.php`

Place any dev routes in this file, they are all prefixed with '/dev'. 'dev' routes have the standard web middlewares.

```
Route::get('/testuser/{user}', function($user){
  echo $user->name;
});
```

if you visit `example.com/dev/testuser/4` you will get the information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1800d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a881e781ccf5267bc2c9153c0485a6b7b0fbfeaf212dcfcca6a4dd18885a48ee?d=identicon)[tobya](/maintainers/tobya)

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (10 commits)")

---

Tags

devlaravel-packageroutestestinglaravelroutelocal code

### Embed Badge

![Health badge](/badges/tobya-devroute/health.svg)

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

###  Alternatives

[orchestra/testbench-core

Testing Helper for Laravel Development

27043.7M310](/packages/orchestra-testbench-core)[laracasts/testdummy

Easy test stubs

4671.4M36](/packages/laracasts-testdummy)[davestewart/sketchpad

An innovative front-end environment for interactive Laravel development

29512.9k1](/packages/davestewart-sketchpad)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)[hyvor/laravel-playwright

Laravel and Playwright E2E Testing

3312.0k](/packages/hyvor-laravel-playwright)[srlabs/laravel-testing-utilities

Helper utilities for testing Laravel Applications

1011.9k](/packages/srlabs-laravel-testing-utilities)

PHPackages © 2026

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