Skip to content

arunnabraham/listmonk-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Listmonk PHP Client

Usage Simple Steps

Installation

composer require neoxenos/listmonk-php-client

example: Transactional Mail

ref: https://listmonk.app/docs/apis/transactional/

<?php

require_once __DIR__ . '/vendor/autoload.php';

use Neoxenos\ListMonkClient\Initiate\ListMonkClientFactory;

$credentails = [
    'listmonk-user',
    'listmonk-password',
    'https://base-url.com'
];


//factory call
$listmonkClient = ListMonkClientFactory::create(
...$credentails
);


$response = $listmonkClient->transactionMailAction(
    'user@example.com', // to emal
    5, //template number //refer admin (should be transactional mail type)
    [
        'order_id' => '1234',
        'name' => 'Name'
    ]
);

About

Listmonk email management client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages