https://github.com/boolfalse/google-reviews-php
Google Reviews in PHP
https://github.com/boolfalse/google-reviews-php
Last synced: 11 months ago
JSON representation
Google Reviews in PHP
- Host: GitHub
- URL: https://github.com/boolfalse/google-reviews-php
- Owner: boolfalse
- Created: 2023-07-29T09:05:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-29T09:10:15.000Z (over 2 years ago)
- Last Synced: 2025-01-10T06:58:57.205Z (about 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Google Reviews PHP
### About:
- This is a simple PHP script to get Google Reviews from Google Maps API and display them on your website.
#### Installation:
- Enable *Google Maps JS* and *Google Places* API services from [GCP](https://console.cloud.google.com/apis/dashboard)
- Get Google Place ID from [Place ID Finder](https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder).
- Get Google API Key from [here](https://developers.google.com/maps/documentation/javascript/get-api-key).
- Set appropriate credentials in the "config.php" like this:
```php
"***",
'google_api_key' => "***",
];
```
- Set *schema.json* file like this:
```json
{
"@context": "https://schema.org",
"@type": "SportswearStore",
"name": "Nike The Grove",
"url": "https://nike.com/",
"logo": "https://c.static-nike.com/a/images/w_1920,c_limit/bzl2wmsfh7kgdkufrrjq/image.jpg",
"image": "https://c.static-nike.com/a/images/w_1920,c_limit/bzl2wmsfh7kgdkufrrjq/image.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "189 The Grove Dr Space Q-30",
"addressLocality": "Los Angeles",
"addressRegion": "CA",
"postalCode": "90036",
"addressCountry": "US",
"telephone": "+13239370168"
},
"priceRange": "$$$"
}
```
#### Sources:
- [Google Rich Results](https://search.google.com/test/rich-results)
- Google Rich Results [Testing Tool](https://search.google.com/test/rich-results)
- Google Structured Data [Testing Tool](https://developers.google.com/search/docs/advanced/structured-data)
- Example [repo](https://github.com/mikeott/google-reviews)
- [Useful Schema Markup for the Finance Industry](https://salience.co.uk/insight/magazine/schema-for-finance-sites/#financialservice)
- [How finance marketers can use schema to boost SEO](https://www.thedubs.com/how-finance-marketers-can-use-schema-to-boost-their-seo/)
#### Author:
- [BoolFalse](https://boolfalse.com/)