{"id":17936996,"url":"https://github.com/tomschlick/laravel-http2-server-push","last_synced_at":"2025-04-05T07:04:38.665Z","repository":{"id":49155733,"uuid":"64423074","full_name":"tomschlick/laravel-http2-server-push","owner":"tomschlick","description":"A middleware package for Laravel to enable server push for your script, style, and image assets.","archived":false,"fork":false,"pushed_at":"2021-06-25T23:30:11.000Z","size":53,"stargazers_count":166,"open_issues_count":5,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T06:05:14.208Z","etag":null,"topics":["http","http2","laravel","lumen","middleware","php","server-push"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomschlick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-28T19:38:00.000Z","updated_at":"2024-11-12T02:34:44.000Z","dependencies_parsed_at":"2022-08-25T20:12:35.983Z","dependency_job_id":null,"html_url":"https://github.com/tomschlick/laravel-http2-server-push","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschlick%2Flaravel-http2-server-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschlick%2Flaravel-http2-server-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschlick%2Flaravel-http2-server-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschlick%2Flaravel-http2-server-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomschlick","download_url":"https://codeload.github.com/tomschlick/laravel-http2-server-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299831,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","http2","laravel","lumen","middleware","php","server-push"],"created_at":"2024-10-28T22:05:46.647Z","updated_at":"2025-04-05T07:04:38.640Z","avatar_url":"https://github.com/tomschlick.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel / Lumen HTTP/2 Server Push Middleware\n\n[![Build Status](https://secure.travis-ci.org/tomschlick/laravel-http2-server-push.png)](http://travis-ci.org/tomschlick/laravel-http2-server-push)\n[![StyleCI](https://styleci.io/repos/64423074/shield)](https://styleci.io/repos/64423074)\n[![Latest Stable Version](https://poser.pugx.org/tomschlick/laravel-http2-server-push/v/stable)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)\n[![Total Downloads](https://poser.pugx.org/tomschlick/laravel-http2-server-push/downloads)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)\n[![Latest Unstable Version](https://poser.pugx.org/tomschlick/laravel-http2-server-push/v/unstable)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)\n[![License](https://poser.pugx.org/tomschlick/laravel-http2-server-push/license)](https://packagist.org/packages/tomschlick/laravel-http2-server-push)\n\n\nA middleware package for Laravel 5 / Lumen to enable server push for your script, style, and image assets.\n\n## Installation\n\nFirst start by adding the package to your composer.json file\n```bash\ncomposer require tomschlick/laravel-http2-server-push\n```\n\nNext add the service provider to your `config/app.php` file:\n```\n\\TomSchlick\\ServerPush\\ServiceProvider::class,\n```\n\n\nThen add the middleware to your Http Kernel (`app/Http/Kernel.php`). Do so towards the end of the list.\n```php\nprotected $middleware = [\n    \\TomSchlick\\ServerPush\\Http2ServerPushMiddleware::class,\n];\n```\n\n## Usage\n\nNow when you enable it on a route it will automatically include the resources in your elixir `/build/rev-manifest.json` file. \nTo add a resource manually you may use `pushStyle($pathOfCssFile)`, `pushScript($pathOfJsFile)`, `pushFont($pathOfFontFile)` or `pushImage($pathOfImageFile)` from anywhere in your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomschlick%2Flaravel-http2-server-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomschlick%2Flaravel-http2-server-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomschlick%2Flaravel-http2-server-push/lists"}