Download the PHP package brainjuredstudio/product-reviews without Composer
On this page you can find all versions of the php package brainjuredstudio/product-reviews. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brainjuredstudio/product-reviews
More information about brainjuredstudio/product-reviews
Files in brainjuredstudio/product-reviews
Package product-reviews
Short Description Sync product reviews from Yotpo into Statamic collections with Antlers tags and Schema.org markup.
License proprietary
Informations about the package product-reviews
Product Reviews
Statamic 6 addon that syncs product reviews from Yotpo into a local collection. Reviews stay on your server (no client-side Yotpo widgets), are editable in the Control Panel, and render with Antlers plus Schema.org JSON-LD.
Provider today: Yotpo. Architecture supports additional platforms later.
Features
- Pull Yotpo reviews via REST API into a
product_reviewscollection - Automatic CDN fallback when the Core API times out
- Scheduled and on-demand sync (down to every five minutes)
- Manual override so CP edits are not overwritten
- Antlers tags for listing, averages, and counts
- Drop-in Antlers partial with star rating, schema, photos, and pagination
- Schema.org Product / AggregateRating / Review markup
- CP utility for connection test, status, and “Sync now”
Requirements
- PHP 8.3+
- Statamic 6
- A Yotpo account with App Key + API Secret
Install
On php please statamic:install, config and content publish automatically.
Configure
Add to .env:
Optional:
| Variable | Values | Default |
|---|---|---|
PRODUCT_REVIEWS_SCHEDULE |
daily, twice_daily, hourly, every_thirty_minutes, every_fifteen_minutes, every_five_minutes |
daily |
PRODUCT_REVIEWS_YOTPO_SOURCE |
auto (Core then CDN), core, cdn |
auto |
PRODUCT_REVIEWS_YOTPO_PRODUCT_IDS |
Comma-separated storefront product IDs / SKUs for CDN sync | (empty) |
Yotpo credentials: Settings → Store Settings → API Credentials.
Product ID matching
product_id on synced entries must match the ID you use in Antlers — typically your storefront SKU / external product ID (Shopify product/variant ID or SKU), not Yotpo’s internal numeric ID.
If Core API syncs fine, SKUs usually land correctly. For CDN-only or CDN fallback syncs, set:
Those values should be the same IDs Yotpo knows as the product’s domain_key / external ID. After the first sync, existing entry product_id values are reused automatically on later CDN runs.
If reviews sync but the frontend shows zero, compare Collections → Product Reviews → product_id with the product_id= value in your template.
Sync
Or Utilities → Product Reviews → Sync Now in the Control Panel. Use Test Connection to verify credentials without a full sync. Sync runs in the background queue so the CP does not time out on slow Yotpo responses.
Default schedule is daily. Ensure the host runs Laravel’s scheduler and a queue worker when using CP sync:
Drop-in partial
Publish the partial once:
Then on any product template:
Hide the built-in rating header when your product page already shows one:
The partial outputs Schema.org JSON-LD, star rating summary, review list (with photos when synced), and prev/next pagination links. Override styles via the .product-reviews classes or copy the partial into your theme.
Antlers
Parameters: product_id, min_rating, provider, limit, page, offset, sort (default reviewed_at:desc).
Pagination: page is 1-based and works with limit. Use offset for explicit skipping (offset wins when both are set).
Moderation
Collections → Product Reviews
- Unpublish to hide on the frontend
- Enable Manual Override before editing so the next sync won’t overwrite your changes
License
Commercial / proprietary. A valid Statamic Marketplace license is required per site. See LICENSE.md.
Support
Email: [email protected]
Changelog
See CHANGELOG.md.