PHPackages                             shaneeardley80/laravel-amp - 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. shaneeardley80/laravel-amp

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

shaneeardley80/laravel-amp
==========================

Package that helps you set up AMP (Accelerated Mobile Pages) using Laravel

1.1.1(5y ago)0182MITPHPPHP &gt;=5.6

Since Dec 22Pushed 5y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Lavavel AMP (Accelerated Mobile Pages)
======================================

[](#lavavel-amp-accelerated-mobile-pages)

This package makes it easy to integrate [AMP](https://www.ampproject.org/) in your Laravel projects. By using the new `Route::amp()` notation.

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

[](#installation)

You can install the package via composer:

```
composer require shaneeardley80/laravel-amp
```

Register the service provider in your app.php

```
// app.php
'providers' => [
    ...
    Just\Amp\Laravel\AmpServiceProvider::class,
],
'aliases' => [
    ...
    'AmpRouter' => Just\Amp\Laravel\AmpRouteFacade::class,
]
```

And register the custom `Route::amp()` notation in your `RouteServiceProvider.php`.

```
/// app/Providers/RouteServiceProvider.php
use AmpRouter;

...
public function boot(Router $router)
{
    AmpRouter::registerMacros();

    parent::boot($router);
}
```

Usage
-----

[](#usage)

```
//route.php
Route::amp('url-of-my-route', ['as' => 'my-route', 'uses' => 'PageController@text']);
```

There well be two routes registered. One with '/url-of-my-route', and one prefixed with the config value you specify in the config file such as `googleamp`. The logic for both routes is the same, but the view that's being rendered for the amp route affixed the the config value you specify in the config file (view-affix). In your view, include the `amp::tag` file. This will match the AMP route (if exists) and put an link to the amp content in your HTML.

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

2020d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76459534?v=4)[shaneeardley80](/maintainers/shaneeardley80)[@shaneeardley80](https://github.com/shaneeardley80)

---

Top Contributors

[![svtd](https://avatars.githubusercontent.com/u/48347593?v=4)](https://github.com/svtd "svtd (2 commits)")

---

Tags

laravel-ampshaneeardley80

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shaneeardley80-laravel-amp/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/session

The Illuminate Session package.

9939.3M849](/packages/illuminate-session)

PHPackages © 2026

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