PHPackages                             imarc/google-site-search - 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. [Search &amp; Filtering](/categories/search)
4. /
5. imarc/google-site-search

ActiveLibrary[Search &amp; Filtering](/categories/search)

imarc/google-site-search
========================

A PHP Interface to the Google Custom Search API

2.0.0(11y ago)3110.9k22[1 PRs](https://github.com/imarc/google-site-search/pulls)MITPHPPHP &gt;=5.4.0

Since Jan 28Pushed 8y ago29 watchersCompare

[ Source](https://github.com/imarc/google-site-search)[ Packagist](https://packagist.org/packages/imarc/google-site-search)[ RSS](/packages/imarc-google-site-search/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Google Custom Search
====================

[](#google-custom-search)

A PHP interface to the Google Custom Search JSON API. The JSON API allows for [free](https://cse.google.com/cse) and [paid](https://www.google.com/work/search/products/gss.html) users to take advantage of adding Google search results to your website.

Google's documentation for the Custom Search JSON API can be found here:

Credentials
-----------

[](#credentials)

**Search Engine ID** - On the [Custom Search Engine Control Panel](http://www.google.com/cse/manage/all), create a new search engine for the site you would like to integrate. Once created, you can retrieve your Search Engine ID from the *Setup* tab.

**API Key** - If you're using the free option, visit the [Google Developers Console](https://console.developers.google.com) and create a project for your search engine. Within your project, you’ll need to enable the *Custom Search API* from the *APIs* tab. Finally, on the *Credentials* tab, you will need to create a Public API access key by selecting the *Create new Key* option and choosing *Server key*. The API Key will now be available.

If you're using a paid option, you can find your API key in the [Control Panel](http://www.google.com/cse/manage/all) in the *Business &gt; XML &amp; JSON* tab.

Usage
-----

[](#usage)

```
$search = new iMarc\GoogleCustomSearch(SEARCH_ENGINE_ID, API_KEY);
$results = $search->search('Apples');

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~234 days

Total

3

Last Release

4025d ago

Major Versions

1.x-dev → 2.0.02015-05-11

PHP version history (2 changes)1.0.0PHP &gt;=5.2.0

2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e06ff0975473f7673aed90148a65feb46e290427917a07b95740e28c9bb061bc?d=identicon)[th3fallen](/maintainers/th3fallen)

---

Top Contributors

[![jeffturcotte](https://avatars.githubusercontent.com/u/65089?v=4)](https://github.com/jeffturcotte "jeffturcotte (4 commits)")[![joeyrush](https://avatars.githubusercontent.com/u/17975028?v=4)](https://github.com/joeyrush "joeyrush (3 commits)")[![dtcollins](https://avatars.githubusercontent.com/u/3641365?v=4)](https://github.com/dtcollins "dtcollins (2 commits)")[![khamer](https://avatars.githubusercontent.com/u/1452?v=4)](https://github.com/khamer "khamer (1 commits)")[![th3fallen](https://avatars.githubusercontent.com/u/291859?v=4)](https://github.com/th3fallen "th3fallen (1 commits)")

---

Tags

searchgoogle

### Embed Badge

![Health badge](/badges/imarc-google-site-search/health.svg)

```
[![Health](https://phpackages.com/badges/imarc-google-site-search/health.svg)](https://phpackages.com/packages/imarc-google-site-search)
```

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k178.3M943](/packages/elasticsearch-elasticsearch)[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[solarium/solarium

PHP Solr client

93432.7M98](/packages/solarium-solarium)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15224.3M65](/packages/opensearch-project-opensearch-php)[jan-drda/laravel-google-custom-search-engine

Laravel package to get Google Custom Search results from Google Custom Search Engine API for both free and paid version.

5036.7k](/packages/jan-drda-laravel-google-custom-search-engine)[tomwalder/php-appengine-search

Google App Engine Search Library for PHP

242.2k](/packages/tomwalder-php-appengine-search)

PHPackages © 2026

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