PHPackages                             jornatf/laravel-route-generator - 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. jornatf/laravel-route-generator

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

jornatf/laravel-route-generator
===============================

Laravel package to auto-generate routes from static blade view.

v1.0.0(2y ago)04[2 PRs](https://github.com/jornatf/laravel-route-generator/pulls)MITPHPPHP ^8.0.2

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jornatf/laravel-route-generator)[ Packagist](https://packagist.org/packages/jornatf/laravel-route-generator)[ Docs](https://github.com/jornatf/laravel-route-generator)[ RSS](/packages/jornatf-laravel-route-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (4)Used By (0)

Laravel Route Generator
=======================

[](#laravel-route-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2e868e00a2399a1071ce360922d3f960fc3dfdc509eaeb34e0ca01de2ba4c62d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f726e6174662f6c61726176656c2d726f7574652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jornatf/laravel-route-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/dc01a216aecc04395243e77ddd54769334749e5fc8fd3f2d507e348030e445b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f726e6174662f6c61726176656c2d726f7574652d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jornatf/laravel-route-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/7dc32d846514528504937f312ac10f800842ea9d2f748e562c005a8c3defc37b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f726e6174662f6c61726176656c2d726f7574652d67656e657261746f722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jornatf/laravel-route-generator/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9016ad898420d3ea8e91330432bfffdc74ebd0ccbfd9f7994769a38f5609e1a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f726e6174662f6c61726176656c2d726f7574652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jornatf/laravel-route-generator)

**A Laravel package to auto-generate routes from static blade view.**

You can use this package to generated simple page that does not require processing in a controller.

> #### If you like this package you can [Buy me a Coffee](https://www.buymeacoffee.com/jornatf) ☕️
>
> [](#if-you-like-this-package-you-can-buy-me-a-coffee-️)

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

[](#installation)

You can install the package via composer:

```
composer require jornatf/laravel-route-generator
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-route-generator-config"
```

This is the contents of the published config file:

```
return [

    /*
    |--------------------------------------------------------------------------
    | View base path
    |--------------------------------------------------------------------------
    |
    | Specify here the folder containing the blade views for the routes. This
    | base will not be in the URL.
    |
    */

    'view_base_path' => 'static',

    /*
    |--------------------------------------------------------------------------
    | URL prefix
    |--------------------------------------------------------------------------
    |
    | Here you can specify a URL prefix. By default the value is null.
    |
    */

    'url_prefix' => null,

    /*
    |--------------------------------------------------------------------------
    | Midlewares
    |--------------------------------------------------------------------------
    |
    | You can specify the middlewares that should be used for all automatically
    | generated URLs.
    |
    */

    'middlewares' => [],
];
```

Usage
-----

[](#usage)

To start and depending on the configurations, you must create in `resources\views`, the folder with the same name as the value of `view_base_path` (default: `static`).

Then you'll have:

```
resources/
├─ views/
│  ├─ static/
│  │  ├─ about.blade.php
│  │  ├─ contact.blade.php

```

Here the routes will be generated:

MethodURLRoute nameGET/aboutstatic.aboutGET/contactstatic.contactYou can then check the generation of the routes with the Artisan command:

```
php artisan generated-route:list

```

### Prefix

[](#prefix)

You can add prefix to your route group in the config file, like this:

```
'url_prefix' => 'my_prefix',
```

### Middlewares

[](#middlewares)

You can add middlewares to your route group in the config file, like this:

```
'middlewares' => ['auth:sanctum'],
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Jordan Nataf](https://github.com/jornatf)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

917d ago

### Community

Maintainers

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

---

Top Contributors

[![jornatf](https://avatars.githubusercontent.com/u/92311176?v=4)](https://github.com/jornatf "jornatf (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

artisan-commandgeneratorlaravellaravel-packagelaravel-route-listlaravel-routesstatic-site-generatorlaraveljornatflaravel-route-generator

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jornatf-laravel-route-generator/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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