PHPackages                             xanweb/c5-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. xanweb/c5-http2-server-push

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

xanweb/c5-http2-server-push
===========================

A middleware package for Concrete5 to use HTTP/2 pushes

v1.1(6y ago)12MITPHPPHP &gt;=7.2CI failing

Since Feb 18Pushed 6y ago3 watchersCompare

[ Source](https://github.com/Xanweb/c5-http2-server-push)[ Packagist](https://packagist.org/packages/xanweb/c5-http2-server-push)[ RSS](/packages/xanweb-c5-http2-server-push/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Concrete5 HTTP2 Server Push
===========================

[](#concrete5-http2-server-push)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c230a12d2b316bc4cc6ad7676028bed5a44541e44d38cdcd76c82a622718bdbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f78616e7765622f63352d68747470322d7365727665722d707573682e7376673f6d61784167653d32353932303030267374796c653d666c61742d737175617265)](https://packagist.org/packages/xanweb/c5-http2-server-push)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Middleware library for Concrete5 to use HTTP/2 pushes

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

[](#installation)

Include library to your composer.json

```
composer require xanweb/c5-http2-server-push
```

Add the service provider and middleware to `application/config/app.php`

```
return [
    'providers' => [
        'xw_http2_server_push' => '\Xanweb\ServerPush\ServiceProvider'
    ],
    'middleware' => [
        'xw_http2_server_push' => '\Xanweb\ServerPush\Middleware\Http2ServerPushMiddleware'
    ]
];
```

Make sure you are loading vendor autoload `application/bootstrap/autoload.php`

```
