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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pagespeed-toolkit

inforob-sf/pagespeed-toolkit

Tests codecov PHP Symfony

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:

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:

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

  1. Go to Google Cloud Console
  2. Enable the PageSpeed Insights API
  3. Create an API key
  4. 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:

  1. Detect your framework automatically
  2. Locate or generate the audit report
  3. Show failing audits grouped by category and impact
  4. Ask which ones you want to fix
  5. Apply each fix with minimum-necessary changes, reading the file first
  6. 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:


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:

  1. New framework integrations — add a folder under integrations/ with the audit command and a README
  2. Fix guide entries — extend the fix table in .claude/commands/pagespeed-fix.md with framework-specific fixes
  3. 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

PHP Build Version
Package Version
Requires php Version >=8.2
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inforob-sf/pagespeed-toolkit contains the following files

Loading the files please wait ...