PHPackages                             abbaiakram/google-custom-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. [API Development](/categories/api)
4. /
5. abbaiakram/google-custom-search

ActiveLibrary[API Development](/categories/api)

abbaiakram/google-custom-search
===============================

Using google API we can search any keyword in google and we can integrate this in our system as well

00PHP

Since Jul 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/akramaliabbasi/google-custom-search)[ Packagist](https://packagist.org/packages/abbaiakram/google-custom-search)[ RSS](/packages/abbaiakram-google-custom-search/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

google-custom-search
====================

[](#google-custom-search)

Search request metadata

The search metadata includes:

```
url property, which has information about the OpenSearch template used for the results returned in this request.
queries property, which is an array of objects describing the characteristics of possible searches. The name of each object in the array is either the name of an OpenSearch query role or one of the two custom roles defined by this API: previousPage and nextPage . Possible query role objects include:
    request: Metadata describing the query for the current set of results.
        This role is always present in the response.
        It is always an array with just one element.
        nextPage: Metadata describing the query to use for the next page of results.
            This role is not present if the current results are the last page. Note: This API returns up to the first 100 results only.
            When present, it is always a array with just one element.
    previousPage: Metadata describing the query to use for the previous page of results.
        Not present if the current results are the first page.
        When present, it is always a array with just one element.

```

Requirements
------------

[](#requirements)

- PHP version 7.2 or higher

Easy Installation
-----------------

[](#easy-installation)

### Install with composer

[](#install-with-composer)

To install with [Composer](https://getcomposer.org/), simply require the latest version of this package.

```
composer require abbaiakram/google-custom-search
```

require\_once("searchEngine.php");

// instantiate the class $client = new SearchEngine(); // Pass api key as a parameter or leave empty to use default API. $client-&gt;setEngine('google.ae'); $results = $client-&gt;search(\['dubai'\]);

//To iterate over the results, you can do the following,

if ($results\[0\]-&gt;items) { foreach($results\[0\]-&gt;items as $result) {

```
		print $result->title. '';
		print $result->htmlTitle. '';
		print $result->link. '';
		echo $result->htmlSnippet. '';
		print $result->formattedUrl."";

    }

```

}

// Output Results pagination and rest full data print '

```
';
print_r($results[0]->items);
print '
```

';

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/61f6269ac2fbd55c2f8d7bb6828b1053b12d4b0661497c6fc801a3573d48dac9?d=identicon)[akramaliabbasi](/maintainers/akramaliabbasi)

---

Top Contributors

[![akramaliabbasi](https://avatars.githubusercontent.com/u/8374069?v=4)](https://github.com/akramaliabbasi "akramaliabbasi (7 commits)")

### Embed Badge

![Health badge](/badges/abbaiakram-google-custom-search/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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