Skip to content

Send requests of feedback of your customers to verified reviews

License

Notifications You must be signed in to change notification settings

omatech/verified-reviews-send

Repository files navigation

Verified Reviews Send

Latest Version on Packagist Total Downloads

The aim of this package is to ease the sending of purchases made by your customers to verified opinions.

Simply setup the connection and start sending requests to verified opinions.

Installation

You can install the package via composer:

composer require omatech/verified-reviews-send

Environment configuration:

Recomended:
VERIFIED_REVIEWS_SERVICE_URL=https://www.opiniones-verificadas.com
VERIFIED_REVIEWS_WEBSITE_ID=xxxx
VERIFIED_REVIEWS_SECRET_KEY=xxxx

Usage

// Init the connection with verified reviews
$verifiedReviewService = new VerifiedReviewsService(
  $_ENV['VERIFIED_REVIEWS_SERVICE_URL']
  , $_ENV['VERIFIED_REVIEWS_WEBSITE_ID']
  , $_ENV['VERIFIED_REVIEWS_SECRET_KEY']);

$delay=0; // the delay in days you want to wait before verified opinions send the mail to the user
$really_send=true; // if you want to test the service set this flag to false and no requests will be send
foreach ($orders as $order) 
{
  // Send a new purchase
  $ret=$verifiedReviewService->send(
    $order->order_ref // your order reference number
  , $order->firstname
  , $order->lastname
  , $order->email
  , $order->orderdate //yyyy-mm-dd hh24:mi:ss
  , $delay // optional parameter, default 0
  , $really_send // optional parameter, default true 
  );
}

Testing

composer test

Note: if you are in windows you can use:

composer testwindows

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Send requests of feedback of your customers to verified reviews

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages