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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spdevs/laravel-amp

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

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 today

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

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor3

3 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

2244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7957358?v=4)[Bazitron](/maintainers/Bazitron)[@Bazitron](https://github.com/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)")[![JulianaGaibler](https://avatars.githubusercontent.com/u/16828024?v=4)](https://github.com/JulianaGaibler "JulianaGaibler (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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/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.3M850](/packages/illuminate-session)

PHPackages © 2026

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