PHPackages                             medialam/serps-cli - 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. medialam/serps-cli

ActiveProject

medialam/serps-cli
==================

Command line utility to scrape from the terminal

v1.2.0(7y ago)031FairPHPPHP &gt;=5.5.9

Since Sep 7Pushed 5y agoCompare

[ Source](https://github.com/medialam/serps-cli)[ Packagist](https://packagist.org/packages/medialam/serps-cli)[ Docs](https://github.com/serp-spider/serps-cli)[ RSS](/packages/medialam-serps-cli/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (7)Versions (10)Used By (1)

SERPS cli
=========

[](#serps-cli)

Command line utility to scrape from the terminal

Install
-------

[](#install)

You can install it globally with composer:

```
composer global require serps/cli
```

Test installation by invoking the help message

```
serps help
```

Google
------

[](#google)

### Search

[](#search)

Search command allows to trigger a google search from the command line

`serps google:search "keyword"`

#### example

[](#example)

```
    $ serps google:search "github"
    {
      "natural-results": [
        {
          "url": "https://github.com/",
          "title": "How people build software · GitHub",
          "types": [
            "classical",
            "classical_large"
          ]
        },
        {
          "url": "https://fr.wikipedia.org/wiki/GitHub",
          "title": "GitHub — Wikipédia",
          "types": [
            "classical"
          ]
        },
        {
          "url": "https://en.wikipedia.org/wiki/GitHub",
          "title": "GitHub - Wikipedia, the free encyclopedia",
          "types": [
            "classical"
          ]
        },
        {
          "url": "http://rue89.nouvelobs.com/2015/03/31/quest-tous-les-techos-monde-font-github-258439",
          "title": "Qu'est-ce que tous les techos du monde font sur GitHub ? - Rue89 - L ...",
          "types": [
            "classical"
          ]
        },
        {
          "url": "https://twitter.com/github?lang=fr",
          "title": "GitHub (@github) | Twitter",
          "types": [
            "classical"
          ]
        },
        {
          "url": "https://www.githubarchive.org/",
          "title": "GitHub Archive",
          "types": [
            "classical"
          ]
        },
        {
          "url": "https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin",
          "title": "GitHub Plugin - Jenkins - Jenkins Wiki",
          "types": [
            "classical"
          ]
        }
      ],
      "total-count": 1.31e+08,
      "natural-results-count": 7,
      "evaluated": true,
      "http-client": "curl",
      "url": "https://www.google.fr/search?q=github&gws_rd=cr&ei=kH7OV7LaForeU_yGhtgC",
      "initial-url": "https://google.com/search?q=github"
    }
```

Tip: In the example [jq](https://stedolan.github.io/jq/) helped to pretty format the outputted json: `$ serps google:search "github" | jq '.'`

#### Advanced usage

[](#advanced-usage)

```
    $ serps google:search --tld="co.uk" --lr="lang_es" "some keywords" phantomjs
```

**With proxy**:

```
    $ serps google:search --proxy="http://proxy:8080" "some keywords"
```

**Page and result per page**:

```
    $ serps google:search --page=2 --res-per-page=20 "some keywords"
```

**User Ageng**:

```
    $ serps google:search --user-agent="..." "some keywords"
```

**Mobile search**

This is an alertnative to the user agent option to use an hard coded mobile user agent

```
    $ serps google:search --mobile "some keywords"
```

**Dump page in a file**:

In a addition of printing the results you can save the dom in a file

```
    $ serps google:search --dump="/path/to/file.html" "some keywords"
```

By default the dump option wont be able to process if the file you specify already exists. The option force-dump makes it able to override an existing file:

```
    $ serps google:search --dump="/path/to/file.html" --force-dump=true "some keywords"
```

Read and parse a **html google file saved locally** instead of doing http query

```
    $ serps google:search --file=./google--search-file.html "some keywords"
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.9% 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

Every ~91 days

Recently: every ~105 days

Total

9

Last Release

2809d ago

Major Versions

v0.2.0 → v1.0.0-alpha2017-07-14

v0.1.1 → v1.1.02018-04-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1670335?v=4)[Charles Astwood](/maintainers/charlesastwood)[@charlesastwood](https://github.com/charlesastwood)

---

Top Contributors

[![gsouf](https://avatars.githubusercontent.com/u/3215399?v=4)](https://github.com/gsouf "gsouf (29 commits)")[![charlesastwood](https://avatars.githubusercontent.com/u/1670335?v=4)](https://github.com/charlesastwood "charlesastwood (4 commits)")

---

Tags

googleSERPS

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/medialam-serps-cli/health.svg)

```
[![Health](https://phpackages.com/badges/medialam-serps-cli/health.svg)](https://phpackages.com/packages/medialam-serps-cli)
```

###  Alternatives

[serps/search-engine-google

Google Rules and client for SERPS

168141.5k4](/packages/serps-search-engine-google)[om/potrans

Command line tool for translate Gettext with Google Translator API or DeepL API

10515.0k4](/packages/om-potrans)[serps/http-client-curl

CURL client for SERPS

12102.1k5](/packages/serps-http-client-curl)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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