3
3
</p >
4
4
5
5
<p align =" center " >
6
- <a href =" https://gitscrum.com " ><img src =" https://site.gitscrum.com/badges/project.svg?project=gitscrum/bulls-eye-gitscrum-37 " alt =" GitScrum " ></a >
7
- <a href =" https://packagist.org/packages/renatomarinho/laravel-page-speed " ><img src =" https://poser.pugx.org/renatomarinho/laravel-page-speed/license " alt =" License " ></a >
6
+ <a href =" https://travis-ci.org/renatomarinho/laravel-page-speed " ><img src =" https://travis-ci.org/renatomarinho/laravel-page-speed.svg?branch=master " alt =" Build Status " ></a >
8
7
<a href =" https://packagist.org/packages/renatomarinho/laravel-page-speed " ><img src =" https://poser.pugx.org/renatomarinho/laravel-page-speed/version " alt =" Latest Stable Version " ></a >
9
8
<a href =" https://packagist.org/packages/renatomarinho/laravel-page-speed " ><img src =" https://poser.pugx.org/renatomarinho/laravel-page-speed/downloads " alt =" Total Downloads " ></a >
9
+ <a href =" https://packagist.org/packages/renatomarinho/laravel-page-speed " ><img src =" https://poser.pugx.org/renatomarinho/laravel-page-speed/license " alt =" License " ></a >
10
10
</p >
11
11
12
12
# Laravel Page Speed
13
13
14
- ### Simple package to minify HTML output on demand which results in a 35%+ optimization.
14
+ Simple package to minify HTML output on demand which results in a 35%+ optimization. Laravel Page Speed was created by [ Renato Marinho ] [ link-author ] , and currently maintained by [ João Roberto P. Borges ] [ link-maintainer ] , [ Lucas Mesquita Borges ] [ link-maintainer-2 ] and [ Renato Marinho ] [ link-author ] .
15
15
16
16
## Installation
17
17
18
18
> ** Requires:**
19
- - ** [ PHP 7.1.3 +] ( https://php.net/releases/ ) **
20
- - ** [ Laravel 5.5 +] ( https://github.com/laravel/laravel ) **
19
+ - ** [ PHP 7.2.5 +] ( https://php.net/releases/ ) **
20
+ - ** [ Laravel 6.0 +] ( https://github.com/laravel/laravel ) **
21
21
22
22
You can install the package via composer:
23
23
@@ -44,8 +44,8 @@ protected $middleware = [
44
44
\RenatoMarinho\LaravelPageSpeed\Middleware\ElideAttributes::class,
45
45
\RenatoMarinho\LaravelPageSpeed\Middleware\InsertDNSPrefetch::class,
46
46
\RenatoMarinho\LaravelPageSpeed\Middleware\RemoveComments::class,
47
- \RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
48
- \RenatoMarinho\LaravelPageSpeed\Middleware\RemoveQuotes::class,
47
+ // \RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
48
+ // \RenatoMarinho\LaravelPageSpeed\Middleware\RemoveQuotes::class,
49
49
\RenatoMarinho\LaravelPageSpeed\Middleware\CollapseWhitespace::class, // Note: This middleware invokes "RemoveComments::class" before it runs.
50
50
\RenatoMarinho\LaravelPageSpeed\Middleware\DeferJavascript::class,
51
51
]
@@ -89,7 +89,7 @@ The **InsertDNSPrefetch::class** filter Injects <link rel="dns-prefetch" href="/
89
89
90
90
DNS resolution time varies from <1ms for locally cached results, to hundreds of milliseconds due to the cascading nature of DNS. This can contribute significantly towards total page load time. This filter reduces DNS lookup time by providing hints to the browser at the beginning of the HTML, which allows the browser to pre-resolve DNS for resources on the page.
91
91
92
- ### \RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
92
+ ### ⚠️ \RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
93
93
94
94
The ** TrimUrls::class** filter trims URLs by resolving them by making them relative to the base URL for the page.
95
95
@@ -140,18 +140,6 @@ By default this field comes configured with some options, so feel free to config
140
140
141
141
> * Notice* : This package skip automatically 'binary' and 'streamed' responses. See [ File Downloads] [ link-file-download ] .
142
142
143
- ### Disable Middleware
144
-
145
- All middlewares operate with Auto-Discover. However, there are times when you do not want to use a specific middleware.
146
-
147
- ``` php
148
- //config/laravel-page-speed.php
149
-
150
- 'disabled_middlewares' => [
151
- \RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
152
- ];
153
- ```
154
-
155
143
## Testing
156
144
157
145
``` sh
@@ -162,10 +150,8 @@ $ composer test
162
150
163
151
Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) for details.
164
152
165
- ## Credits
153
+ ## Contributors
166
154
167
- - [ Renato Marinho] [ link-author ]
168
- - [ João Roberto P. Borges] [ link-maintainer ]
169
155
- [ Caneco] ( https://twitter.com/caneco ) (for the logo)
170
156
- [ All Contributors] [ link-contributors ]
171
157
@@ -181,6 +167,7 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
181
167
[ link-after ] : https://i.imgur.com/IKWKLkL.png
182
168
[ link-author ] : https://github.com/renatomarinho
183
169
[ link-maintainer ] : https://github.com/joaorobertopb
170
+ [ link-maintainer-2 ] : https://github.com/lucasMesquitaBorges
184
171
[ link-contributors ] : ../../contributors
185
172
[ link-file-download ] : https://laravel.com/docs/6.0/responses#file-downloads
186
173
[ link-package-discovery ] : https://laravel.com/docs/6.0/packages#package-discovery
0 commit comments