PHP Integration Library

Learn more about how to download and implement our PHP API Integration Library to your own project.

Overview - what this Library is?

We want to provide our clients a way to use our system however they like. That is why we have introduced the Integration Libraries - a group of functions and declarations to help you implement our API to your system.

How to download and implement the Library

To install our library you can use composer package manager by running:

composer require elastic-email/web-api-client;

The source code is available also on our github if you wish to download the library manually.

How to start working with the Library on your project

The source code is available also on our github if you wish to download the library manually.

use ElasticEmailClient\ElasticClient as Client;
use ElasticEmailClient\ApiConfiguration as Configuration;

and create instance of ElasticEmail client:

$configuration = new Configuration([
‘apiUrl’ => ‘https://api.elasticemail.com,
‘apiKey’ => ‘yourapikey
]);
$client = new Client($configuration);

Now $client has access to all categories and their methods used in our API.

Github Repository

PHP Repository

If you like this article, share it with friends:
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin