flamix / marketing-php-sdk
There is no license information available for the latest version (dev-main) of this package.
Flamix Marketing SDK
dev-main
2024-06-20 12:57 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: >=6
This package is auto-updated.
Last update: 2024-12-20 14:00:20 UTC
README
composer require flamix/marketing-php-sdk
We can send custom and standard mails.
use Flamix\Marketing\Client as FlamixMarketing; // Init $flamixMarketing = new FlamixMarketing('token', 'en'); // Custom mail $flamixMarketing->email ->setSubject('Super Creative Subject') ->setBody('<p>Put HTML text here!</p>') ->send('flamix.solutions', 'client@gmail.com', ['title' => 'Optionally you can set title']); // Custom email with template $flamixMarketing->email ->custom('password_restore', ['link' => $url]) ->send('flamix.solutions', 'client@gmail.com', ['title' => 'Optionally you can set title']); // License mail $flamixMarketing->email ->license('FX-1234567890', 'WooCommerce Store Integrations') ->send('flamix.solutions', 'client@gmail.com'); // Payment mail $flamixMarketing->email ->payment('debit', 120, 'USD', ['id' => 999, 'date' => '10/12/2022', 'method' => 'Flamix.Kassa']) ->setUser(['id' => 1, 'name' => 'Roman Shkabko', 'region' => 'UA', 'currency' => 'UAH']) ->setItem(['id' => 123123, 'name' => 'WooCommerce Store Sync'], 'FX-123456789') ->send('flamix.solutions', 'client@gmail.com'); $flamixMarketing->email ->order('order_confirm', 9, ['items' => 999, 'delivery' => 100], 'UAH', 'Львів, Миколайчука 36, Поштомат Нової пошти', 'http://localhost/admin/companies') ->setItem([ [ 'url' => 'https://4mobi.com.ua/product/picture-shadow-matte-case-new-pc-tpu-iphone-11-pro-in-outer-space-nasa-light-purple/', 'img' => 'https://4mobi.com.ua/upload/resize_cache/webp/iblock/f16/emm52lkm7g6duc004kjmbvbbomxp4i60/450_450_0/picture_shadow_matte_case_new_pc_tpu_iphone_11_pro_in_outer_space_nasa_light_purple.webp', 'name' => 'Чехол с дизайном Picture Shadow Matte Case New (PC+TPU) iPhone 11 Pro in outer space nasa/light purple', 'count' => 1, 'price' => 999, ], // Many goods... ]) ->send('flamix.solutions', 'client@gmail.com');
SMS
$sms = new \Flamix\Marketing\Actions\SMS('token', '4mobi.com.ua'); $result = $sms->send('380988220142', 'hello!');