PHPackages                             fond-of-spryker/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fond-of-spryker/google-custom-search

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fond-of-spryker/google-custom-search
====================================

Implements Google Search into the Spryker Suite

3.1.0(3y ago)020.2k↓100%MITPHPPHP &gt;=7.4

Since Jul 10Pushed 3y ago2 watchersCompare

[ Source](https://github.com/fond-of/spryker-google-search)[ Packagist](https://packagist.org/packages/fond-of-spryker/google-custom-search)[ RSS](/packages/fond-of-spryker-google-custom-search/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (11)Used By (0)

fond-of-spryker/google-custom-search
====================================

[](#fond-of-sprykergoogle-custom-search)

[![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/fond-of-spryker/google-custom-search)

Implements Google Search into the Spryker Suite

Install
-------

[](#install)

```
composer require fond-of-spryker/google-custom-search

```

### Configuration

[](#configuration)

First, you should complete the configuration of the Google API in your configuration, e.g. under config/shared/config\_default.php

```
$config[GoogleCustomSearchConstants::API_KEY] = 'YOUR_API_KEY';
$config[GoogleCustomSearchConstants::CX_KEY] = 'SEARCH_ENGINE_KEY';
$config[GoogleCustomSearchConstants::CONFIG_TIMEOUT] = 5.0;
$config[GoogleCustomSearchConstants::RESULT_ITEMS_PER_PAGE] = 10;

```

For more information, see the official documentation at

You can add different CX\_KEYs for locales by extending the key with the locale, in example:

```
$config[GoogleCustomSearchConstants::CX_KEY . '_fr_FR']

```

Dont forget the underscore between the key and locale!

The default route for search is localed with /de, you change this in the GoogleCustomSearchControllerProvider. If you dont need any localized route just remove the language parameter in URL.

```
->value(
    GoogleCustomSearchConstants::ROUTE_SEARCH_URL_VARIABLE,
    '/de/' . GoogleCustomSearchConstants::ROUTE_SEARCH_URL_VARIABLE
);

```

Add GoogleCustomSearchWidget::class to ShopApplicationDependencyProvider

```
protected function getGlobalWidgets(): array
    {
        return [
            ...
            GoogleCustomSearchWidget::class,
        ];
    }

```

Add GoogleCustomSearchControllerProviderPlugin to RouterDependencyProvider

```
protected function getRouteProvider(): array
    {
        return [
            ...
            new GoogleCustomSearchControllerProviderPlugin(),
        ];
    }

```

### Render the form

[](#render-the-form)

To render the search form use the following code. If you want to change the routes, expand the module as you like using the Spryker workflow

```
{% widget 'GoogleCustomSearchWidget' only %}{% endwidget %}

```

### Results

[](#results)

The search results are displayed under the URL

```
/search (route name google-search-results).

```

If you need a different route, just expand the module how you like

Under /Yves/Theme/default/ search you will find two example templates. Feed free to implement your own.

Changelog
---------

[](#changelog)

2.0.0 - added Support for Spryker 202001.0

```
use {% widget 'GoogleCustomSearchWidget' only %}{% endwidget %} instead of {{ render(path('gcs/form')) }}

```

```
use new router FondOfSpryker\Yves\GoogleCustomSearch\Plugin\Router\GoogleCustomSearchControllerProviderPlugin instead of FondOfSpryker\Yves\GoogleCustomSearch\Plugin\Provider\GoogleCustomSearchControllerProvider }}

```

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

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

Recently: every ~82 days

Total

10

Last Release

1102d ago

Major Versions

1.1.3 → 2.0.02022-04-21

2.0.2 → 3.0.02023-01-19

PHP version history (3 changes)1.0PHP &gt;=7.1

2.0.0PHP &gt;=7.2

3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c8ae669ad5d4e25d1564b2ee381e86fb88b3d9f132040a1a6b642de43b7a417?d=identicon)[daniel-rose](/maintainers/daniel-rose)

![](https://www.gravatar.com/avatar/5766a5e1f2f31647ebd3e7ccfc434a968092eedbf3db8f6e999f3d8650d4521e?d=identicon)[Carpenter0100](/maintainers/Carpenter0100)

![](https://www.gravatar.com/avatar/2f5bd8b1a3358200680cbaf5d0dce827afb0569cc997877854354cc70bcf5a61?d=identicon)[julianzimmermann](/maintainers/julianzimmermann)

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

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

---

Top Contributors

[![sourcecube](https://avatars.githubusercontent.com/u/3285018?v=4)](https://github.com/sourcecube "sourcecube (4 commits)")[![daniel-rose](https://avatars.githubusercontent.com/u/489806?v=4)](https://github.com/daniel-rose "daniel-rose (2 commits)")[![DerCalli](https://avatars.githubusercontent.com/u/35733274?v=4)](https://github.com/DerCalli "DerCalli (2 commits)")[![SpiderDan98](https://avatars.githubusercontent.com/u/40319023?v=4)](https://github.com/SpiderDan98 "SpiderDan98 (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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