shreesthapit / corewebvitals
Package info
github.com/shreesthapit1/corewebvitals
Language:HTML
pkg:composer/shreesthapit/corewebvitals
v1.01
2021-12-01 16:31 UTC
Requires
- php: >=7.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This is Laravel 8.x package wrapper library for monitoring Web Vitals Records to check website performance.
Documentation
Installing
To install the package, in terminal:
composer require shreesthapit/corewebvitals
Configure
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Shreesthapit\Corewebvitals\CoreWebVitalServiceProvider::class,
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="Shreesthapit\Corewebvitals\CoreWebVitalServiceProvider"
Migrate the tables required to store the core web vitals records.
php artisan migrate
Collecting Data
You need to add a tag below in your blade layouts or on those pages of which you want to monitor the vitals.
<x-core-web-vital-core-web-component/>
Insight of Collected Data
You can see the insight of the collected data in the URI below:
/core-web-vital-insight
License
The Laravel framework is open-source software licensed under the MIT license.