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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

Requirements

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

License

Commercial / proprietary. A valid Statamic Marketplace license is required per site. See LICENSE.md.

Support

Email: [email protected]

Changelog

See CHANGELOG.md.


All versions of product-reviews with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
statamic/cms Version ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package brainjuredstudio/product-reviews contains the following files

Loading the files please wait ...