omatech / verified-reviews-send
Send opinions to verified reviews
dev-master
2020-11-28 17:48 UTC
Requires (Dev)
- phpunit/phpunit: ^9.4@dev
This package is auto-updated.
Last update: 2024-10-29 02:17:35 UTC
README
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 apons@omatech.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.