All Projects → tomschlick → Laravel Http2 Server Push

tomschlick / Laravel Http2 Server Push

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

Projects that are alternatives of or similar to Laravel Http2 Server Push

Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (+83.33%)
Mutual labels:  middleware, laravel, lumen
Laravel Http2serverpush
A HTTP2 SeverPush Middleware for Laravel 5
Stars: ✭ 294 (+68.97%)
Mutual labels:  middleware, laravel, http2
Vue Lumen Starter
😎 VueJs & Lumen Api Starter.
Stars: ✭ 116 (-33.33%)
Mutual labels:  laravel, lumen
Faygo
Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc.
Stars: ✭ 1,557 (+794.83%)
Mutual labels:  middleware, http2
Vim Laravel
Vim support for Laravel/Lumen projects
Stars: ✭ 128 (-26.44%)
Mutual labels:  laravel, lumen
Forrest
A Laravel library for Salesforce
Stars: ✭ 171 (-1.72%)
Mutual labels:  laravel, lumen
Larasupport
📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.
Stars: ✭ 104 (-40.23%)
Mutual labels:  laravel, lumen
L5 Very Basic Auth
Stateless HTTP basic auth for Laravel without the need for a database.
Stars: ✭ 127 (-27.01%)
Mutual labels:  middleware, laravel
Depictr
A middleware for rendering static pages when crawled by search engines
Stars: ✭ 92 (-47.13%)
Mutual labels:  middleware, laravel
Laravel Fractal
An easy to use Fractal wrapper built for Laravel and Lumen applications
Stars: ✭ 1,748 (+904.6%)
Mutual labels:  laravel, lumen
Laravel Authz
An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Stars: ✭ 136 (-21.84%)
Mutual labels:  middleware, laravel
Laravel Awesome
Laravel 学习图谱
Stars: ✭ 143 (-17.82%)
Mutual labels:  laravel, lumen
Laravel Aspect
aspect oriented programming Package for laravel framework
Stars: ✭ 98 (-43.68%)
Mutual labels:  laravel, lumen
Twig
Twig - less is more's web server for golang
Stars: ✭ 98 (-43.68%)
Mutual labels:  middleware, http2
Taobao Top Client
Taobao top client(SDK) for laravel
Stars: ✭ 105 (-39.66%)
Mutual labels:  laravel, lumen
Laravel Localize Middleware
Configurable localization middleware for your Laravel >=5.1 application
Stars: ✭ 92 (-47.13%)
Mutual labels:  middleware, laravel
Xblock Kernel
XBlock - 开发文档
Stars: ✭ 127 (-27.01%)
Mutual labels:  laravel, lumen
Request Migrations
HTTP Request Migrations for API Versioning like Stripe
Stars: ✭ 149 (-14.37%)
Mutual labels:  middleware, laravel
Laravel Analytics
Analytics for the Laravel framework.
Stars: ✭ 91 (-47.7%)
Mutual labels:  middleware, laravel
Larafast Fastapi
A Fast Laravel package to help you generate CRUD API Controllers and Resources, Model.. etc
Stars: ✭ 91 (-47.7%)
Mutual labels:  laravel, lumen

Laravel / Lumen HTTP/2 Server Push Middleware

Build Status StyleCI Latest Stable Version Total Downloads Latest Unstable Version License

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

Installation

First start by adding the package to your composer.json file

composer require tomschlick/laravel-http2-server-push

Next add the service provider to your config/app.php file:

\TomSchlick\ServerPush\ServiceProvider::class,

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

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.

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].