1. Go to this page and download the library: Download gocanto/blinky 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/ */
gocanto / blinky example snippets
use Blinky\Verifier;
use Blinky\Mailgun\Client;
use Gocanto\HttpClient\HttpClient;
use Blinky\Mailgun\Credentials;
$container->bind(Verifier::class, static function () {
return new Client(Credentials::live(), new HttpClient());
});
use Blinky\Mailgun\Credentials;
$credentials = Credentials::live();
$credentials->setUsername('api-username');
$credentials->setApiKey('api-production-key');
use Blinky\Mailgun\Client;
use Gocanto\HttpClient\HttpClient;
// we are assuming we have the credentials object here. See the above example for more info.
$client = new Client($credentials, new HttpClient());