1. Go to this page and download the library: Download plugninja/sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
plugninja / sdk example snippets
use PlugNinja\Plug;
$plug = new Plug('your-api-key');
// Send an email
$result = $plug->email->send([
'to' => '[email protected]',
'subject' => 'Welcome!',
'html' => '<h1>Hello from plug.ninja</h1>',
]);
echo $result['messageId'];