PHPackages                             tomschlick/laravel-http2-server-push - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. tomschlick/laravel-http2-server-push

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tomschlick/laravel-http2-server-push
====================================

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

v0.2.1(7y ago)16467.2k↓33.3%19[3 PRs](https://github.com/tomschlick/laravel-http2-server-push/pulls)MITPHPPHP &gt;=7.0

Since Jul 29Pushed 4y ago4 watchersCompare

[ Source](https://github.com/tomschlick/laravel-http2-server-push)[ Packagist](https://packagist.org/packages/tomschlick/laravel-http2-server-push)[ RSS](/packages/tomschlick-laravel-http2-server-push/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (5)Versions (12)Used By (0)

Laravel / Lumen HTTP/2 Server Push Middleware
=============================================

[](#laravel--lumen-http2-server-push-middleware)

[![Build Status](https://camo.githubusercontent.com/2b1edae82021e30c0fc19badfda2eebd5f8ee2b189939a2cf6c8b780b69ff47c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746f6d7363686c69636b2f6c61726176656c2d68747470322d7365727665722d707573682e706e67)](http://travis-ci.org/tomschlick/laravel-http2-server-push)[![StyleCI](https://camo.githubusercontent.com/6cfde2397d75017dad532afaaaa8526f3031a48aea0574f4fb2695f3b65112f7/68747470733a2f2f7374796c6563692e696f2f7265706f732f36343432333037342f736869656c64)](https://styleci.io/repos/64423074)[![Latest Stable Version](https://camo.githubusercontent.com/87674058c83e58d3eff3e88f9bc484c276a2e9ce1161d8ff3041a8fbaae5ce14/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7363686c69636b2f6c61726176656c2d68747470322d7365727665722d707573682f762f737461626c65)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)[![Total Downloads](https://camo.githubusercontent.com/33b523636110ed97e544a526e3ae4a6b1cba5c0e8a65e458aabc3611b75e6897/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7363686c69636b2f6c61726176656c2d68747470322d7365727665722d707573682f646f776e6c6f616473)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)[![Latest Unstable Version](https://camo.githubusercontent.com/ab789eb5e9f84687de2b6975105da00edcd13fe1a3e3e9edd2085fb9195a3cce/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7363686c69636b2f6c61726176656c2d68747470322d7365727665722d707573682f762f756e737461626c65)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)[![License](https://camo.githubusercontent.com/3d923de9ed63d1c521fd1922b947780476123725a049b9e3e88379e63354887d/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7363686c69636b2f6c61726176656c2d68747470322d7365727665722d707573682f6c6963656e7365)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)

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

Installation
------------

[](#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
-----

[](#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.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.5% of commits — single point of failure

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 ~102 days

Recently: every ~155 days

Total

9

Last Release

2759d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b116525a1bd1456044dc2edc80dd04a09806549a38945eb9b905b143a642c4bd?d=identicon)[tomschlick](/maintainers/tomschlick)

---

Top Contributors

[![tomschlick](https://avatars.githubusercontent.com/u/70184?v=4)](https://github.com/tomschlick "tomschlick (29 commits)")[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (2 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")[![lukepolo](https://avatars.githubusercontent.com/u/2066668?v=4)](https://github.com/lukepolo "lukepolo (1 commits)")[![paulschwarz](https://avatars.githubusercontent.com/u/720418?v=4)](https://github.com/paulschwarz "paulschwarz (1 commits)")[![pdbreen](https://avatars.githubusercontent.com/u/1670907?v=4)](https://github.com/pdbreen "pdbreen (1 commits)")[![ptondereau](https://avatars.githubusercontent.com/u/4287777?v=4)](https://github.com/ptondereau "ptondereau (1 commits)")[![regiszanandrea](https://avatars.githubusercontent.com/u/2692748?v=4)](https://github.com/regiszanandrea "regiszanandrea (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![toramanlis](https://avatars.githubusercontent.com/u/4260647?v=4)](https://github.com/toramanlis "toramanlis (1 commits)")[![dionatanmelo1](https://avatars.githubusercontent.com/u/26264022?v=4)](https://github.com/dionatanmelo1 "dionatanmelo1 (1 commits)")

---

Tags

httphttp2laravellumenmiddlewarephpserver-push

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomschlick-laravel-http2-server-push/health.svg)

```
[![Health](https://phpackages.com/badges/tomschlick-laravel-http2-server-push/health.svg)](https://phpackages.com/packages/tomschlick-laravel-http2-server-push)
```

###  Alternatives

[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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