Download the PHP package cohensive/laravel-amp without Composer
On this page you can find all versions of the php package cohensive/laravel-amp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cohensive/laravel-amp
More information about cohensive/laravel-amp
Files in cohensive/laravel-amp
Package laravel-amp
Short Description Package that helps you set up AMP (Accelerated Mobile Pages) using Laravel
License MIT
Homepage https://github.com/KaneCohen/laravel-amp
Informations about the package laravel-amp
Lavavel AMP (Accelerated Mobile Pages)
This package makes it easy to integrate AMP in your Laravel projects. By using the new notation.
Installation
You can install the package via composer:
Register the service provider in your app.php
And register the custom notation in your .
Usage
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 amp
: 'amp/url-of-my-route'.
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 file. This will match the AMP route (if exists) and put an link to the amp content in your HTML.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-amp with dependencies
laravel/framework Version ^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0