Download the PHP package s-punkt-online/contao-google-reviews-widget without Composer
On this page you can find all versions of the php package s-punkt-online/contao-google-reviews-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download s-punkt-online/contao-google-reviews-widget
More information about s-punkt-online/contao-google-reviews-widget
Files in s-punkt-online/contao-google-reviews-widget
Package contao-google-reviews-widget
Short Description Google Reviews Widget for Contao CMS with frontend module and content element support.
License MIT
Homepage https://www.s-punkt-online.de
Informations about the package contao-google-reviews-widget
Contao Google Reviews Widget
Google Reviews Widget for Contao CMS with support for:
- Frontend Module
- Content Element
- Google Places API
- Schema.org structured data
- Local JSON caching
Features
- Display Google ratings
- Average star rating
- Total review count
- Link to Google reviews
- Local caching
- Automatic hide if no reviews available
- Usable as:
- Frontend Module
- Content Element
Installation
Via Contao Manager
Search for:
Install the package and run the database migration.
Via Composer
Then clear the cache:
Google API Setup
1. Create Google Cloud Project
Open Google Cloud Console:
https://console.cloud.google.com
2. Enable Places API
Enable:
Important:
Do not only enable Places API (New).
This extension currently uses the classic Places API.
3. Create API Key
Open:
Create a new API key.
4. Configure API Key
Application restrictions
For testing:
Later recommended:
- IP restriction for your server
Important:
Do not use HTTP Referrer restrictions because the API requests are executed server-side via PHP.
API restrictions
Allow:
Find Google Place ID
Use:
https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder
Usage as Frontend Module
Backend:
Module type:
Usage as Content Element
Backend:
Element type:
Available Fields
Google API Key
Your Google API key.
Google Place ID
Google Place ID of the business.
Business Name
Used for Schema.org structured data.
Example:
Business URL
Example:
Google Review URL
Direct link to Google reviews.
Cache
Google API responses are stored locally.
Path:
Benefits:
- Better performance
- Fewer API requests
- Lower Google API costs
Template Override
Template:
Can be overridden inside your Contao project.
CSS & JavaScript
Assets are loaded automatically.
Files:
Requirements
- Contao 5.3+
- PHP 8.1+
- Enabled Google Places API
Support
S Punkt Online GmbH