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 1mo ago

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 27% 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

1968d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82a6e341334fbb4afd680f49df48aedb2bc1ff98fe5f834b4b276bebded1dae4?d=identicon)[shaneeardley80](/maintainers/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

[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)

PHPackages © 2026

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