PHPackages                             brayniverse/laravel-route-view-helper - 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. [Templating &amp; Views](/categories/templating)
4. /
5. brayniverse/laravel-route-view-helper

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

brayniverse/laravel-route-view-helper
=====================================

Syntactic sugar for those occasions when you only want to display a basic view.

v1.0.5(9y ago)1431MITPHPPHP ^5.5.9 || ^7.0

Since Oct 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/brayniverse/laravel-route-view-helper)[ Packagist](https://packagist.org/packages/brayniverse/laravel-route-view-helper)[ Docs](https://github.com/brayniverse/laravel-route-view-helper)[ RSS](/packages/brayniverse-laravel-route-view-helper/feed)WikiDiscussions master Synced 2mo ago

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

Laravel route view helper
=========================

[](#laravel-route-view-helper)

[![Build Status](https://camo.githubusercontent.com/c1eba2b74eabf61baaf9bcbab487b59710441e600560498d4f3888b77be5e0ec/68747470733a2f2f7472617669732d63692e6f72672f627261796e6976657273652f6c61726176656c2d726f7574652d766965772d68656c7065722e737667)](https://travis-ci.org/brayniverse/laravel-route-view-helper)[![Total Downloads](https://camo.githubusercontent.com/27dfbb688d5c84226c75b9b00694feb233eaa61407192fa3548f186e5b884210/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d726f7574652d766965772d68656c7065722f642f746f74616c2e737667)](https://packagist.org/packages/brayniverse/laravel-route-view-helper)[![Latest Stable Version](https://camo.githubusercontent.com/365be9757b3301f7e5c870cdddce1326346e574ab16d7b5adc4774bbcb8c15e6/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d726f7574652d766965772d68656c7065722f762f737461626c652e737667)](https://packagist.org/packages/brayniverse/laravel-route-view-helper)[![Latest Unstable Version](https://camo.githubusercontent.com/e29ce4dda1608dc115fd76662fbe3fd72c325871d26373c54f1ba9b656aed3ae/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d726f7574652d766965772d68656c7065722f762f756e737461626c652e737667)](https://packagist.org/packages/brayniverse/laravel-route-view-helper)[![License](https://camo.githubusercontent.com/21ce416519c5fadd2594eba5c5643f3ac12a42f9fe4bb579da2c71eb54a71428/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d726f7574652d766965772d68656c7065722f6c6963656e73652e737667)](https://packagist.org/packages/brayniverse/laravel-route-view-helper)

Syntactic sugar for those occasions when you only want to display a basic view.

This package adds a `Route::view()` helper method so you don't have to create a closure when all you are returning is a view.

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

[](#installation)

Begin by installing the package through Composer.

```
$ composer require brayniverse/laravel-route-view-helper
```

Then add the following to your providers array in `config/app.php`.

```
Brayniverse\LaravelRouteViewHelper\ServiceProvider::class
```

Usage
-----

[](#usage)

Normally you'd have to return a view in either a controller method or callback like the following:

```
public function contact()
{
  return view('contact');
}

// or

Route::get('/contact', function () {
  return view('contact');
});
```

Now you can do the same in one line.

```
Route::view('/contact', 'contact');
```

Credits
-------

[](#credits)

- [Christopher L Bray](https://github.com/brayniverse)
- [All Contributors](../../contributors)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Recently: every ~24 days

Total

6

Last Release

3360d ago

### Community

Maintainers

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

---

Top Contributors

[![brayniverse](https://avatars.githubusercontent.com/u/945367?v=4)](https://github.com/brayniverse "brayniverse (9 commits)")

---

Tags

laravellaravelhelperroutingview

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brayniverse-laravel-route-view-helper/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[torann/device-view

Provides support for device based view layouts in Laravel.

146.6k](/packages/torann-device-view)[delatbabel/viewpages

Support rendering/view of Laravel pages and templates from a database.

121.4k](/packages/delatbabel-viewpages)

PHPackages © 2026

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