shreesthapit / corewebvitals
Installs: 390
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
Language:HTML
Requires
- php: >=7.3
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.