2017 © Pedro Peláez
 

library laravel-http2-server-push

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

image

tomschlick/laravel-http2-server-push

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  • Wednesday, May 23, 2018
  • by tomschlick
  • Repository
  • 5 Watchers
  • 154 Stars
  • 25,140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 3 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

Laravel / Lumen HTTP/2 Server Push Middleware

Build Status StyleCI Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

A middleware package for Laravel 5 / Lumen to enable server push for your script, style, and image assets., (*2)

Installation

First start by adding the package to your composer.json file, (*3)

composer require tomschlick/laravel-http2-server-push

Next add the service provider to your config/app.php file:, (*4)

\TomSchlick\ServerPush\ServiceProvider::class,

Then add the middleware to your Http Kernel (app/Http/Kernel.php). Do so towards the end of the list., (*5)

protected $middleware = [
    \TomSchlick\ServerPush\Http2ServerPushMiddleware::class,
];

Usage

Now when you enable it on a route it will automatically include the resources in your elixir /build/rev-manifest.json file. To add a resource manually you may use pushStyle($pathOfCssFile), pushScript($pathOfJsFile), pushFont($pathOfFontFile) or pushImage($pathOfImageFile) from anywhere in your project., (*6)

The Versions

23/05 2018

dev-master

9999999-dev

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

23/05 2018

v0.2.0

0.2.0.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

11/12 2017

v0.1.6

0.1.6.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/02 2017

v0.1.5

0.1.5.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/02 2017

v0.1.4

0.1.4.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/08 2016

v0.1.3

0.1.3.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/07 2016

v0.1.2

0.1.2.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/07 2016

v0.1.1

0.1.1.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/07 2016

v0.1.0

0.1.0.0

A middleware package for Laravel 5 to enable server push for your script, style, and image assets.

  Sources   Download

MIT

The Requires

 

The Development Requires