// Open source package

PageSpeed Watcher

Apogee-Information-Systems / pagespeed-watcher

Open-source Laravel package to run Google PageSpeed Insights (PSI) checks for your app pages. Schedule performance tests, track daily API usage, and run PSI from Artisan commands — all backed by a ready-made database schema.

// Features

  • CLI commands for page performance tests and API usage tracking
  • Daily usage tracking with cost estimates beyond the free tier
  • Configurable rate limits, timeouts, and performance score thresholds
  • Database schema for pages, test results, settings, and API usage
  • Scheduled daily tests with URL discovery support

// Quick start

composer require apogee/laravel-pagespeed-watcher

php artisan vendor:publish --tag=watcher-config
php artisan vendor:publish --tag=watcher-migrations
php artisan migrate

php artisan watcher:test-page
php artisan watcher:usage

// Commands

watcher:test-page

Run a full PageSpeed Insights test and analyse page performance. Every call consumes API quota — PSI has no separate validation endpoint. Supports --strategy=mobile|desktop and --url= options.

watcher:usage

Monitor your PageSpeed Insights API usage — today's totals and the last seven days with cost estimates.

APOGEE INFORMATION SYSTEMS · Greece · Luxembourg · GitHub