All Projects → wearejust → Laravel Amp

wearejust / Laravel Amp

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

Projects that are alternatives of or similar to Laravel Amp

Ampify
Convert your HTML to Google AMP (Accelerated Mobile Pages)
Stars: ✭ 104 (-1.89%)
Mutual labels:  google, amp, mobile
Laravel Google Drive Demo
Laravel & Google Drive Storage - Demo project with Laravel 5.4
Stars: ✭ 299 (+182.08%)
Mutual labels:  google, laravel
Laravel Robots Middleware
Enable or disable the indexing of your app
Stars: ✭ 259 (+144.34%)
Mutual labels:  google, laravel
Mobly
E2E test framework for tests with complex environment requirements.
Stars: ✭ 424 (+300%)
Mutual labels:  google, mobile
Magicalexoplayer
The Easiest Way To Play/Stream Video And Audio Using Google ExoPlayer In Your Android Application
Stars: ✭ 171 (+61.32%)
Mutual labels:  google, mobile
Laravel Analytics
A Laravel package to retrieve pageviews and other data from Google Analytics
Stars: ✭ 2,613 (+2365.09%)
Mutual labels:  google, laravel
Gmscore
Free implementation of Play Services
Stars: ✭ 4,356 (+4009.43%)
Mutual labels:  google, mobile
Open Source Xamarin Apps
📱 Collaborative List of Open Source Xamarin Apps
Stars: ✭ 318 (+200%)
Mutual labels:  google, mobile
Socialite
Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.
Stars: ✭ 1,026 (+867.92%)
Mutual labels:  google, laravel
Laravel Google Ads
Google Ads API for Laravel
Stars: ✭ 56 (-47.17%)
Mutual labels:  google, laravel
Amp Theme Framework
Start Creating an AMP theme in minutes - This is a default / boilerplate theme, you can use this, modify and make one your own.
Stars: ✭ 69 (-34.91%)
Mutual labels:  amp, mobile
Google Places Api
This is a PHP wrapper for Google Places API Web Service. And is Laravel Framework friendly.
Stars: ✭ 147 (+38.68%)
Mutual labels:  google, laravel
Jstoxml
JavaScript object to XML converter (useful for RSS, podcasts, GPX, AMP, etc)
Stars: ✭ 127 (+19.81%)
Mutual labels:  google, amp
React Native Header View
Fully customizable Header View with multiple design options for React Native.
Stars: ✭ 221 (+108.49%)
Mutual labels:  google, mobile
Laravel Natural Language
This package makes using the Google Natural API in your laravel app a breeze with minimum to no configuration, clean syntax and a consistent package API.
Stars: ✭ 119 (+12.26%)
Mutual labels:  google, laravel
Laravel Google Calendar
Manage events on a Google Calendar
Stars: ✭ 787 (+642.45%)
Mutual labels:  google, laravel
React Native Streetview
React Native Google's Panorama/StreetView component for iOS and Android.
Stars: ✭ 79 (-25.47%)
Mutual labels:  google, mobile
Laravel Sitemap
Create and generate sitemaps with ease
Stars: ✭ 1,325 (+1150%)
Mutual labels:  google, laravel
Amp Pwa Demo
A simple, dependency-free blog that uses a Progressive Web App (PWA) to show Accellerated Mobile Pages (AMP).
Stars: ✭ 104 (-1.89%)
Mutual labels:  amp
Collect
A Collections-only split from Laravel's Illuminate Support
Stars: ✭ 1,433 (+1251.89%)
Mutual labels:  laravel

Lavavel AMP (Accelerated Mobile Pages)

This package makes it easy to integrate AMP in your Laravel projects. By using the new Route::amp() notation.

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

//route.php
Route::amp('url-of-my-route', ['as' => 'my-route', 'uses' => '[email protected]']);

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

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].