Creates a dynamic badge for Google Reviews by fetching the latest reviews from the Google Places API.
Example:
Supported Languages:
- Arabic:
ar.php
- Chinese (Simplified):
zh.php
- German:
de.php
- English:
en.php
- French:
fr.php
- Hindi:
hi.php
- Italian:
it.php
- Japanese:
ja.php
- Portuguese:
pt.php
- Russian:
ru.php
- Spanish:
es.php
NOTE: All languages are cached separately to avoid unnecessary API requests.
Download the latest package from the GitHub and upload it to your server. - I recommend a separate subdomain for this purpose.
Rename the file config.inc.php.dist
to config.inc.php
and adjust the settings to your needs.
To retrieve data using the Google Places API, you need to create an API key in the Google Cloud Console:
- Log in to the Google Cloud Console.
- Create a new project or select an existing project.
- Enable the API:
- Go to APIs & Services > Library.
- Search for Places API and enable it.
- Create an API key:
- Navigate to APIs & Services > Credentials.
- Click Create Credentials > API Key.
- Restrict the API key (e.g., limit it to the Places API and specific IP addresses or HTTP referrers).
To get the Google Places ID, you can use the Place ID Finder and enter the name of your business. The Place ID will be displayed in the search results.
To display the badge on your website, you can use the following code snippet:
<img alt="Google Review Badge" src="https://subdomain.domain.de/" width="100%" height="auto />
And for other languages and GET
parameter lang
:
<img alt="Google Review Badge" src="https://subdomain.domain.de/?lang=de" width="100%" height="auto />
Please use the Github Issues for bug reports and feature requests.
Kussin | eCommerce und Online-Marketing GmbH
Fahltskamp 3
25421 Pinneberg
Germany
Fon: +49 (4101) 85868 - 0
Email: info@kussin.de
© 2025 Fuxstar GmbH