shreesthapit/corewebvitals

v1.01 2021-12-01 16:31 UTC

This package is auto-updated.

Last update: 2025-06-29 01:44:00 UTC


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.