Download the PHP package smnandre/pagespeed-api without Composer

On this page you can find all versions of the php package smnandre/pagespeed-api. 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-api

🚀 PageSpeed PHP API Client

PHP Version CI Release License Codecov

This PHP library offers an effortless way to leverage Google's PageSpeed Insights API.

Analyze your web pages for performance metrics, get detailed reports, and optimize your site with ease. 🚀

Installation

Usage

Initialize the API

Run analysis

Parameters

Parameter Description Default
url The URL of the page to analyze. -
strategy The analysis strategy to use. Possible values are mobile or desktop. mobile
locale The locale to use for the analysis. en
categories The categories to analyze. If not specified, all categories will be analyzed. -

Audit Scores

Audit categories

# Category Description
Performance Measures how quickly the content on your page loads and becomes interactive.
🌍 Accessibility Evaluates how accessible your page is to users, including those with disabilities.
🏆 Best Practices Assesses your page against established web development best practices.
SEO Analyzes your page's search engine optimization, ensuring it follows SEO guidelines.

Score Evaluation

Min Max ⬜️ Description
0 49 🟥🟥🟥🟥🟥⬜️⬜️⬜️⬜️⬜️ Poor
50 89 🟧🟧🟧🟧🟧🟧🟧🟧🟧️⬜️️ Needs improvement
90 100 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 Good

Core Web Vitals

Loading Metrics

Main Metrics

# Abbr Metric Description
🖼️ FCP First Contentful Paint Time taken for the first piece of content to appear on the screen.
📏 SI Speed Index How quickly the contents of a page are visibly populated.
📏 FID First Input Delay
📊 CLS Cumulative Layout Shift Measure of visual stability; the sum of all individual layout shift scores.
LCP Largest Contentful Paint Time taken for the largest content element to appear.
⏱️ INP Interaction to Next Paint The time from when a user interacts with a page (e.g., clicks a button) to the next time the page visually updates in response to that interaction.

Contributing

Contributions are welcome! If you would like to contribute, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.


All versions of pagespeed-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/http-client Version ^7.0
webmozart/assert Version ^1.11
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 smnandre/pagespeed-api contains the following files

Loading the files please wait ....