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

ActiveLibrary

spdevs/laravel-amp
==================

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

1.1.3(6y ago)1408MITPHPPHP &gt;=5.6

Since Jan 25Pushed 6y agoCompare

[ Source](https://github.com/Bazitron/laravel-amp)[ Packagist](https://packagist.org/packages/spdevs/laravel-amp)[ Docs](https://github.com/wearejust/amp)[ RSS](/packages/spdevs-laravel-amp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)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 wearejust/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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

2197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51789b46701f2a6d45c4a6e66b8f184ce7cccfc9cc898102971ce977d5c6ee93?d=identicon)[Bazitron](/maintainers/Bazitron)

---

Top Contributors

[![Bazitron](https://avatars.githubusercontent.com/u/7957358?v=4)](https://github.com/Bazitron "Bazitron (3 commits)")[![ceesvanegmond](https://avatars.githubusercontent.com/u/883497?v=4)](https://github.com/ceesvanegmond "ceesvanegmond (3 commits)")[![JulianGaibler](https://avatars.githubusercontent.com/u/16828024?v=4)](https://github.com/JulianGaibler "JulianGaibler (3 commits)")[![haakym](https://avatars.githubusercontent.com/u/832687?v=4)](https://github.com/haakym "haakym (1 commits)")[![KaneCohen](https://avatars.githubusercontent.com/u/578455?v=4)](https://github.com/KaneCohen "KaneCohen (1 commits)")

---

Tags

wearejustlaravel-amp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/spdevs-laravel-amp/health.svg)](https://phpackages.com/packages/spdevs-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-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)

PHPackages © 2026

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