Skip to content

petrvacha/mandrill-api-php-ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mandrill API for PHP

This is a fork of an official library - bitbucket.org/mailchimp/mandrill-api-php.

It supports SSL verification.

Installation

composer require petrvacha/mandrill-api-php-ssl

Usage without SSL verification

$yourKey = "yourSecretMandrillKey";
$mandrill = new Mandrill($yourKey);

Usage with SSL verification

Download cacart.pem from curl.haxx.se/docs/caextract.html.

$yourKey = "yourSecretMandrillKey";
$absolutePathToCaCert = "/etc/ssl/certs/cacert.pem";
$mandrill = new Mandrill($yourKey, $absolutePathToCaCert);