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 3w 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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

1769d 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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M973](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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