PHPackages                             qortex/php-emarsys-connector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. qortex/php-emarsys-connector

ActiveLibrary[API Development](/categories/api)

qortex/php-emarsys-connector
============================

Provides connection to Emarsys Omnichannel Customer Engagement Platform API v2

0.0.4(4y ago)0395[1 PRs](https://github.com/QortexDevs/php-emarsys-connector/pulls)1GPL-3.0-or-laterPHPPHP ^7.4|^8

Since Nov 29Pushed 4y ago2 watchersCompare

[ Source](https://github.com/QortexDevs/php-emarsys-connector)[ Packagist](https://packagist.org/packages/qortex/php-emarsys-connector)[ RSS](/packages/qortex-php-emarsys-connector/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (2)Versions (6)Used By (1)

Provides connection to Emarsys Omnichannel Customer Engagement Platform API v2
==============================================================================

[](#provides-connection-to-emarsys-omnichannel-customer-engagement-platform-api-v2)

If you are developing with Laravel, concider using [laravel-emarsys-connector](https://github.com/QortexDevs/laravel-emarsys-connector) instead. I allows to use connector as an injected dependency.

Install
-------

[](#install)

```
$ composer require qortex/php-emarsys-connector
```

Use
---

[](#use)

First, obtain credentials for [Emarsys API User](https://help.emarsys.com/hc/en-us/articles/115004740329-your-account-security-settings#api-users).

Then, pass these credentials as username and secret to `EmarsysConnector` constructor:

```
use Qortex\Emarsys\Services\Connector as EmarsysConnector;

$emarsysConnector = new EmarsysConnector($username, $secret);
```

Last, use any of the following `EmarsysConnector` methods to communicate with Emarsys Omnichannel Customer Engagement Platform:

```
function queryContacts(string $key, string $value)
```

Queries all contacts matching `$key` with the `$value` in Emarsys contacts database, regardless the contact lists.

Emarsys API [List Contact Data](https://dev.emarsys.com/v2/contacts/list-contact-data)

```
function createContact(string $key, array $properties)
```

Creates a contact in Emarsys contacts database and populates its properties with `$properties` . `$key` is used to provide uniqueness of the contact.

Emarsys API [Create Contacts](https://dev.emarsys.com/v2/contacts/create-contacts)

```
function deleteContact(string $key, string $value)
```

Deletes a contact with `$key` equals `$value` from Emarsys contacts database.

Emarsys API [Delete a Contact](https://dev.emarsys.com/v2/contacts/delete-contact)

```
function addContactToContactListById(int $listId, int $contactId)
```

Adds a contact defined by `$contactId` to a contact list defined by `$listId`.

Emarsys API [Add Contacts to a Contact List](https://dev.emarsys.com/v2/contact-lists/add-contacts-to-a-contact-list)

```
function removeContactFromContactListById(int $listId, int $contactId)
```

Removes a contact defined by `$contactId` from a contact list defined by `$listId`.

Emarsys API [Remove Contacts from a Contact List](https://dev.emarsys.com/v2/contact-lists/remove-contacts-from-a-contact-list)

```
function countContactsInAContactList(int $listId)
```

Counts contacts in a contact list defined by `$listId`

Emarsys API [Count Contacts in a Contact List](https://dev.emarsys.com/v2/contact-lists/count-contacts-in-a-contact-list)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~90 days

Total

4

Last Release

1723d ago

PHP version history (2 changes)0.0.1PHP ^7.3

0.0.4PHP ^7.4|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95453?v=4)[NickMitin](/maintainers/NickMitin)[@NickMitin](https://github.com/NickMitin)

---

Top Contributors

[![NickMitin](https://avatars.githubusercontent.com/u/95453?v=4)](https://github.com/NickMitin "NickMitin (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qortex-php-emarsys-connector/health.svg)

```
[![Health](https://phpackages.com/badges/qortex-php-emarsys-connector/health.svg)](https://phpackages.com/packages/qortex-php-emarsys-connector)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
