nguyenanhung / omnisend
Omnisend: Ecommerce Email Marketing and SMS Platform
Installs: 5 013
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- ext-json: *
- nguyenanhung/my-debug: ^3.0
- omnisend/php-sdk: ^1.2
README
Omnisend: Ecommerce Email Marketing and SMS Platform
Version
-
v1.x
Support all PHP Version>=5.6
-
v2.x
Support all PHP Version>=7.0
Installation
Simple installation with Composer
composer require nguyenanhung/omnisend
Example
<?php /** * Project omnisend * Created by PhpStorm * User: 713uk13m <dev@nguyenanhung.com> * Copyright: 713uk13m <dev@nguyenanhung.com> * Date: 09/09/2021 * Time: 10:32 */ use nguyenanhung\Omnisend\Services\Omnisend; require_once __DIR__ . 'vendor/autoload.php'; $options = [ 'debugStatus' => true, 'debugLevel' => null, 'loggerPath' => '/tmp', ]; $apiKey = 'xxx'; $omnisend = new Omnisend($options); $omnisend->setApiKey($apiKey); // Example Request Events $params = [ 'eventId' => 'xxx' ]; $body = [ 'email' => 'example@domain.com', 'fields' => 'abc' ]; $result = $omnisend->withPostRequest()->events($body); echo "<pre>"; print_r($result); echo "</pre>";
See more at: https://github.com/nguyenanhung/omnisend/tree/main/example
Contact
If any question & request, please contact following information
From Hanoi with Love <3