Download the PHP package mailmatics/php-sdk without Composer
On this page you can find all versions of the php package mailmatics/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mailmatics/php-sdk
More information about mailmatics/php-sdk
Files in mailmatics/php-sdk
Package php-sdk
Short Description The Mailmatics PHP SDK
License MIT
Homepage https://github.com/metaline/mailmatics-sdk-php
Informations about the package php-sdk
PHP Mailmatics SDK
A PHP client for the Mailmatics API.
This library is in development. Use it at your risk.
Requirements
Installation
The recommended way to install PHP Mailmatics SDK is through Composer.
$ curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version:
$ php composer.phar require mailmatics/php-sdk
After installing, you need to require the Composer’s autoloader:
Authentication
PHP Mailmatics SDK supports two authentication modes:
1. API key:
2. Simple login:
Options
TODO
HTTP Client
Internally, PHP Mailmatics SDK uses an implementation of Mailmatics\HttpClientInterface
. The default is Mailmatics\HttpClient\StreamClient
. You can change it by passing it to the client constructor:
The more powerful implementation is the Mailmatics\HttpClient\GuzzleHttpClient
, that require the Guzzle library.
You can pass your instance of Guzzle client in the constructor:
Lists
Get all lists:
Get a single list:
Subscribe a user to a list
You can specify also first and last name:
...or the fullname (Mailmatics automagicaly split first and last name):
Unsubscribe a user
To unsubscribe a user from a list, you must have his subscriber ID.
TODO: How can I obtain the subscriber ID?
Transactional Emails
Get all transactional emails:
Get a single transactional email:
Send a transactional email:
Send a scheduled transactional email:
License
This library is licensed under the MIT License - see the LICENSE file for details.