Download the PHP package marshmallow/gtmetrix without Composer
On this page you can find all versions of the php package marshmallow/gtmetrix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/gtmetrix
More information about marshmallow/gtmetrix
Files in marshmallow/gtmetrix
Package gtmetrix
Short Description Get GT Metrix information in Laravel Nova for you website pages. This package can also be used stand-alone.
License MIT
Homepage https://github.com/Marshmallow-Development/
Informations about the package gtmetrix
GT Metrix for Laravel Nova
Get GT Metrix information in Laravel Nova for you website pages. This package can also be used stand-alone.
How does it work?
You create an account on GT Metrix. Once you have an API key you are good to go. You can add this library on every resource you want to, as long as it has a public url connected to it so we can get the GT Metrix score for that url.
Index view
On the index page we show an avarage score of the `Pagespeed` score and the `Yslow` score.

Detail view
On the detail view we will show the `Pagespeed` score and the `Yslow` score. You can click on them to go to the full report on the GTmetrix.com website.

Action
On the detail view you will be able to start an action. This action is queued so make sure you have a worker running. This is needed because the changes of a timeout are big if its busy at GTmetrix.

Once you've selected the action to get a new score you will get a popup telling you how much credits you have left and if you are sure you want to spend another credit.

Installation
Pull in the library using composer.
Update your .env
file and add the to env properties listed below.
Prepare your models
-
Add
use Actionable;
anduse GTMetrix;
to your model. - Add the public method
getFullPublicPath()
to your models. When getting the status from GT Metrix, we will use the result of this method as the url you want to check.
Prepare your nova resources
-
Add
GTMetrixField::make('GT Metrix'),
as a field. - Add
new CheckGTMetrixScore,
as an action.
All versions of gtmetrix with dependencies
philcook/gtmetrix Version ^1.0 || ^2.0
marshmallow/nova-fields-help Version ^1.0