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.
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
// 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
);
}
composer test
Note: if you are in windows you can use:
composer testwindows
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.