Download the PHP package madbox-99/laravel-google-reviews without Composer
On this page you can find all versions of the php package madbox-99/laravel-google-reviews. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download madbox-99/laravel-google-reviews
More information about madbox-99/laravel-google-reviews
Files in madbox-99/laravel-google-reviews
Package laravel-google-reviews
Short Description Fetch and display Google Places reviews in Laravel and Filament apps.
License MIT
Informations about the package laravel-google-reviews
Laravel Google Reviews
Fetch and display Google Places reviews in Laravel and Filament apps. Configurable via config, .env, or a Filament settings page, with a publishable Blade component for display.
Heads up: Google's Places API returns up to 5 reviews per place plus the aggregate rating (average + total count). This package cannot exceed that — it is an API limitation.
Requirements
- PHP 8.3+
- Laravel 12 or 13
- Filament 4 or 5 (optional — only needed for the admin settings page)
Install
Publish the config:
If you use the database driver (the default), publish and run the migrations:
Add your credentials to .env:
Configuration
config/google-reviews.php:
| Key | Env | Default | Purpose |
|---|---|---|---|
api_key |
GOOGLE_PLACES_API_KEY |
— | Google Places API key (env/config only, never stored in the DB). |
place_id |
GOOGLE_PLACES_PLACE_ID |
— | Place ID (string, or an array of IDs). |
driver |
GOOGLE_REVIEWS_DRIVER |
database |
database (persisted + moderatable) or cache. |
cache_ttl |
GOOGLE_REVIEWS_CACHE_TTL |
86400 |
Cache lifetime in seconds (cache driver). |
language |
GOOGLE_REVIEWS_LANGUAGE |
hu |
Language code requested from Google. |
Settings resolve in the order DB (Filament UI) → config file → env default, so any of the three configuration methods works. The API key is the exception: it is always read from env/config for security.
Sync reviews
Fetch fresh reviews from Google and store them:
Schedule it in routes/console.php:
Display
Drop the component anywhere in a Blade view:
Publish the view to customize the markup (Tailwind-based by default):
Programmatic access
Filament
The package ships an optional Filament 4/5 plugin that adds a Google Reviews settings page (edit place ID, driver, cache TTL, language; the API key is shown read-only since it lives in .env).
Register it in your panel provider:
The settings page persists to a google_review_settings table, so publish and run the migrations if you haven't already:
Testing
License
MIT
All versions of laravel-google-reviews with dependencies
illuminate/support Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/console Version ^12.0 || ^13.0