PHPackages                             serpcheap/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. serpcheap/laravel

ActiveLibrary[API Development](/categories/api)

serpcheap/laravel
=================

Laravel integration for the serp.cheap Google SERP API — ServiceProvider, Facade, cached client, and an artisan command.

v0.2.0(1mo ago)00MITPHPPHP &gt;=8.1

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/SerpCheap/serpcheap-laravel)[ Packagist](https://packagist.org/packages/serpcheap/laravel)[ Docs](https://serp.cheap)[ RSS](/packages/serpcheap-laravel/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

serpcheap/laravel
=================

[](#serpcheaplaravel)

Laravel integration for the [serp.cheap](https://serp.cheap) **Google Search API** — real-time Google SERP data wrapped with a ServiceProvider, Facade, cached client, and an artisan command.

It's the **cheapest Google Search API** we know of — $0.0003 per cached search, $0.0006 fresh, no monthly minimum (~10× cheaper than SerpApi).

Wraps the [`serpcheap/serpcheap`](https://packagist.org/packages/serpcheap/serpcheap) PHP SDK with a ServiceProvider, a `SerpCheap` Facade, transparent result caching, and an artisan command.

Install
-------

[](#install)

```
composer require serpcheap/laravel
```

Set your API key (get one at [app.serp.cheap](https://app.serp.cheap)):

```
SERPCHEAP_API_KEY=your-key
```

The provider and `SerpCheap` alias are auto-discovered. To customize, publish the config:

```
php artisan vendor:publish --tag=serpcheap-config
```

Usage
-----

[](#usage)

```
use SerpCheap\Laravel\Facades\SerpCheap;

$results = SerpCheap::search('best running shoes', ['gl' => 'us']);
$page    = SerpCheap::scrape('https://example.com');
$rank    = SerpCheap::rank('example.com', 'best running shoes');
```

Results are cached by default (keyed by query + options) so repeat calls don't spend credits. Reach the raw, uncached SDK client when you need it:

```
SerpCheap::client()->searchPages('best running shoes', 1, 3);
```

### Dependency injection

[](#dependency-injection)

```
use SerpCheap\Laravel\SerpCheapManager;

public function __construct(private SerpCheapManager $serp) {}
```

### Artisan

[](#artisan)

```
php artisan serpcheap:search "best running shoes" --gl=us --page=1
php artisan serpcheap:search "best running shoes" --json
```

Configuration
-------------

[](#configuration)

EnvDefaultDescription`SERPCHEAP_API_KEY`—API key (required)`SERPCHEAP_BASE_URL``https://api.serp.cheap`API base URL`SERPCHEAP_TIMEOUT_MS``15000`Per-request timeout`SERPCHEAP_MAX_RETRIES``2`Retry count on transient errors`SERPCHEAP_CACHE``true`Toggle result caching`SERPCHEAP_CACHE_STORE`default storeCache store to use`SERPCHEAP_CACHE_TTL``3600`Cache TTL in secondsLicense
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

47d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2975858?v=4)[William Bittencourt Moraes](/maintainers/darkwolf66)[@darkwolf66](https://github.com/darkwolf66)

---

Top Contributors

[![darkwolf66](https://avatars.githubusercontent.com/u/2975858?v=4)](https://github.com/darkwolf66 "darkwolf66 (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

apisearchlaravelgooglescrapingSERP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/serpcheap-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/serpcheap-laravel/health.svg)](https://phpackages.com/packages/serpcheap-laravel)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M275](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.4k](/packages/laravel-sail)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

78727.1M205](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[illuminate/queue

The Illuminate Queue package.

20433.0M1.7k](/packages/illuminate-queue)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.4M352](/packages/psalm-plugin-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
