PHPackages                             ryancco/laravel-pages - 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. ryancco/laravel-pages

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

ryancco/laravel-pages
=====================

Static pages in your Laravel application

v1.2(5y ago)5711MITPHPPHP ^7.4|^8.0

Since Apr 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ryancco/laravel-pages)[ Packagist](https://packagist.org/packages/ryancco/laravel-pages)[ RSS](/packages/ryancco-laravel-pages/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

> This package has been archived. If you're looking for similar functionality, check out Laravel Folio.

Laravel Pages
=============

[](#laravel-pages)

[![Packagist](https://camo.githubusercontent.com/134b57a12a79fd60932350bd8e96ba4f42ceeb90a45547bb3edc0f733bd8c766/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7279616e63636f2f6c61726176656c2d70616765733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/134b57a12a79fd60932350bd8e96ba4f42ceeb90a45547bb3edc0f733bd8c766/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7279616e63636f2f6c61726176656c2d70616765733f7374796c653d666c61742d737175617265)[![GitHub Workflow Status](https://github.com/ryancco/laravel-pages/actions/workflows/tests.yml/badge.svg?style=flat-square)](https://github.com/ryancco/laravel-pages/actions/workflows/tests.yml/badge.svg?style=flat-square)[![Packagist](https://camo.githubusercontent.com/2ad6c9562d16322ebffdc4968bea57a29a77a9db306e9f9da84db6fd32abc44a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7279616e63636f2f6c61726176656c2d70616765733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2ad6c9562d16322ebffdc4968bea57a29a77a9db306e9f9da84db6fd32abc44a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7279616e63636f2f6c61726176656c2d70616765733f7374796c653d666c61742d737175617265)

Laravel Pages allows for static pages to be served without the need to configure a route or controller and without having to version files in your `public/` directory.

The primary purpose for this package is to allow designers who are comfortable with writing code to contribute to the same repository that developers will eventually be adapting their designs into. Allowing for one trail of version control history to step through and a more collaborative and inclusive workspace for the entire team without a higher barrier to entry.

There are also plenty of other use cases for such a package - anywhere you want to quickly scaffold and serve static files with the added abilities to leverage the blade compiler composing your pages and Laravel mix for building assets without having to create a new project.

This package has been heavily inspired by [High Voltage](https://github.com/thoughtbot/high_voltage) by [thoughtbot](https://github.com/thoughtbot) from the Rails world.

Usage
-----

[](#usage)

```
composer require ryancco/laravel-pages
```

By default,

- the path to create your view files will be `resources/pages/`
- the default route prefix to access these pages will be `http://your-app.com/pages/`
- there are no middleware applied to the pages **(this includes the web middleware group which provides session functionality)**

Though these are all configurable in the `config/pages.php` file.

```
php artisan vendor:publish --provider="Ryancco\Pages\PagesServiceProvider"
```

***Note**: in order to use any session-dependent logic (i.e. the `Auth` or `Session` facades) or blade directives in your pages, such as anything related to the authorization status of a user (i.e. `@auth`, `@guest`) you must configure pages to use the `web` middleware group or the individual `StartSession` middleware.*

```
[
// ...
    'middleware' => [
         'web'
    ]
// ...
];
```

With pages configured to your liking, if you were to create a view at `resources/pages/about.blade.php` you would be able to access this at `http://your-app.com/pages/about`. Without having to register a single route or create a single controller.

Routing
-------

[](#routing)

Pages can be routed to from within your application as you would any other dynamic page or route.

Alongside traditional routing methods leveraging relative/absolute paths and the `url` helper, there is also a `page` helper and `Page` facade which accept both slash and dot form paths.

```
// continue to work as expected 👍
redirect()->to('/pages/about_us');
redirect()->to(url('pages/about_us'));

// both work - regardless of your configured prefix 👌
redirect()->to(page('pages/about_us'));
redirect()->to(page('pages.about_us'));

// also available via the Pages facade 🤝
redirect()->to(Pages::url('pages/about_us'));
redirect()->to(Pages::url('pages.about_us'));
```

***Note**: Because package routes are loaded last, you can set the route prefix to an empty string to allow for serving static pages from the top level alongside your application-defined routes. However, this may conflict with routes registered **after** this package is loaded (i.e. routes registered by other packages &amp; routes registered outside your applications' route files).*

License
=======

[](#license)

Laravel Pages is licensed under the MIT License. Please see the [LICENSE.md](LICENSE.md) file for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Total

4

Last Release

1872d ago

Major Versions

0.1 → 1.02021-03-07

PHP version history (2 changes)0.1PHP ^7.2

1.0PHP ^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

high-voltagelaravelpagesstaticlaravelstatichigh-voltage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ryancco-laravel-pages/health.svg)

```
[![Health](https://phpackages.com/badges/ryancco-laravel-pages/health.svg)](https://phpackages.com/packages/ryancco-laravel-pages)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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