Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed May 15, 2024
1 parent 1c65d69 commit c49d73f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Google PageSpeed Insights API wrapper for PHP.

---
<a href="https://github.com/smnandre/pagespeed-api/actions"><img alt="javscript-action status" src="https://github.com/smnandre/pagespeed-api/actions/workflows/CI.yaml/badge.svg"></a>
<a href="https://img.shields.io/github/v/release/smnandre/pagespeed-api"><img alt="release" src="https://img.shields.io/github/v/release/smnandre/pagespeed-api"></a>
<a href="https://img.shields.io/github/license/smnandre/pagespeed-api"><img alt="license" src="https://img.shields.io/github/license/smnandre/pagespeed-api"></a>


## Installation

```bash
Expand All @@ -13,7 +19,7 @@ composer require smnandre/pagespeed-api
### Run an analysis

```php
use PageSpeed\Api\Analysis\Category;use PageSpeed\Api\PageSpeedApi;
use PageSpeed\Api\PageSpeedApi;

$api = new PageSpeedApi('YOUR_API');

Expand All @@ -31,10 +37,8 @@ $analysis->getAuditScores();
// 'best-practices' => 100,
// 'seo' => 90

// Loading Experience metrics
$analysis->getLoadingMetrics();

// Origin Loading Experience metrics
$analysis->getOriginalLoadingMetrics();
```

Expand Down

0 comments on commit c49d73f

Please sign in to comment.