Download the PHP package inforob-sf/pagespeed-toolkit without Composer
On this page you can find all versions of the php package inforob-sf/pagespeed-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inforob-sf/pagespeed-toolkit
More information about inforob-sf/pagespeed-toolkit
Files in inforob-sf/pagespeed-toolkit
Package pagespeed-toolkit
Short Description Google PageSpeed Insights audit and AI-powered fix toolkit for Symfony projects
License MIT
Homepage https://github.com/inforob/claude-pagespeed-toolkit
Informations about the package pagespeed-toolkit
inforob-sf/pagespeed-toolkit
A Composer-installable Symfony Bundle + Claude Code toolkit for achieving 90-100 PageSpeed scores.
It combines a Symfony Bundle with a console command that generates audit reports, an AI agent that analyzes your project and recommends optimizations, and a slash command that reads audit reports and applies fixes interactively.
Symfony Installation
That's it. The package automatically:
- Registers
PageSpeedBundleinconfig/bundles.php - Creates
config/packages/pagespeed.yamlwith default configuration - Adds
PAGESPEED_API_KEYandSITE_URLplaceholders to.env - Copies
/pagespeed-fixand thepagespeed-optimizeragent into.claude/
The only manual step: fill in your API key in .env.local:
How it works
Installation
1. Copy the Claude Code files into your project
Or copy manually:
.claude/agents/pagespeed-optimizer.md→ your project's.claude/agents/.claude/commands/pagespeed-fix.md→ your project's.claude/commands/
2. Set up the audit integration for your framework
| Framework | Instructions |
|---|---|
| Symfony | See integrations/symfony/README.md |
| Any stack | See integrations/shell/README.md |
| Laravel | Coming soon |
| Next.js | Coming soon |
| WordPress | Coming soon |
3. Get a Google PageSpeed API key
- Go to Google Cloud Console
- Enable the PageSpeed Insights API
- Create an API key
- Add it to your environment:
PAGESPEED_API_KEY=your_key_here
The free tier allows ~25,000 requests/day — more than enough for local development.
Shell Script (Universal)
Works with any framework. Requires curl and jq.
Usage
/pagespeed-fix — Interactive fixer
Open Claude Code in your project and run:
Claude will:
- Detect your framework automatically
- Locate or generate the audit report
- Show failing audits grouped by category and impact
- Ask which ones you want to fix
- Apply each fix with minimum-necessary changes, reading the file first
- Show a summary of changes and manual action items
pagespeed-optimizer agent — Deep analysis
Ask Claude to launch the optimizer agent for a comprehensive review:
"Can you check if my project is optimized for PageSpeed?"
The agent will:
- Detect your stack and existing configurations
- Audit NGINX config, frontend assets, and Core Web Vitals
- Deliver copy-paste-ready fixes with before/after score estimates
Supported frameworks
| Framework | Audit command | Fix coverage |
|---|---|---|
| Symfony + Twig | php bin/console pagespeed:audit |
Full (Twig templates, NGINX, CSS) |
| Any stack | pagespeed-audit.sh |
Full (NGINX, HTML, CSS, JS) |
| Laravel + Blade | Coming soon | — |
| Next.js | Coming soon | — |
| WordPress | Coming soon | — |
Contributing
Contributions are welcome. The most valuable additions are:
- New framework integrations — add a folder under
integrations/with the audit command and a README - Fix guide entries — extend the fix table in
.claude/commands/pagespeed-fix.mdwith framework-specific fixes - Agent improvements — refine the optimizer agent's detection or output format
See docs/contributing.md for details.
License
MIT
All versions of pagespeed-toolkit with dependencies
composer-plugin-api Version ^2.0
symfony/console Version ^6.4|^7.0|^8.0
symfony/framework-bundle Version ^6.4|^7.0|^8.0
symfony/http-client Version ^6.4|^7.0|^8.0