PHPackages                             qqzii/map-client - 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. qqzii/map-client

ActiveLibrary

qqzii/map-client
================

PHP client for MAP API

1.1.0(1y ago)03MITPHPPHP ^8.0

Since Apr 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/qqzii/map-client)[ Packagist](https://packagist.org/packages/qqzii/map-client)[ RSS](/packages/qqzii-map-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

MAP Client - Package for integration with MAP
=============================================

[](#map-client---package-for-integration-with-map)

Installation
------------

[](#installation)

Install the latest version with

```
composer require qqzii/map-client
```

Basic Usage
-----------

[](#basic-usage)

Init config file map.php with simple structure

```
[
    'url' => 'your.map.url',
    'api_version' => 'v1',
    'auth' => [
        'login' => 'your_login',
        'secret' => 'your_secret_key',
    ],
    'logger' => [
        'name' => 'name_of_your_logger',
        'filepath' => 'path/to/your/logger/file.log',
    ],
];
```

Basic way of interaction

```
$mapService = new MapService(config('map'));

$indexQueryParamsExample = [
    'per_page' => 10,
    'page' => 1,
    'with' => ['topics'],
    'filters' => ['first_name' => 'Olivia']
];

$mapService->getCustomers($indexQueryParamsExample)
```

### Available methods for interactions with MAP

[](#available-methods-for-interactions-with-map)

- #### Actions with customers

    [](#actions-with-customers)

```
public function getCustomers(array $queryParams = []): array
```

```
public function getCustomer(string $customerId, array $queryParams = []): array
```

```
public function createCustomer(array $bodyArgs = []): array
```

```
public function updateCustomer(string $customerId, array $bodyArgs = []): array
```

```
public function deleteCustomer(string $customerId): array
```

```
public function initCustomerEvent(string $customerId, string $eventSlug, array $bodyArgs = []): array
```

```
public function attachCustomerToSegment(string $customerId, string $segmentId): array
```

```
public function detachCustomerFromSegment(string $customerId, string $segmentId): array
```

- #### Actions with segments

    [](#actions-with-segments)

```
public function getSegments(array $queryParams = []): array
```

```
public function getSegment(string $segmentId, array $queryParams = []): array
```

```
public function createSegment(array $bodyArgs = []): array
```

```
public function updateSegment(string $segmentId, array $bodyArgs = []): array
```

```
public function deleteSegment(string $segmentId): array
```

- #### Actions with topics

    [](#actions-with-topics)

```
public function getTopics(array $queryParams = []): array
```

```
public function getTopic(string $topicId, array $queryParams = []): array
```

- #### Actions with messages

    [](#actions-with-messages)

```
public function getMessages(array $queryParams = []): array
```

```
public function getMessage(string $messageId, array $queryParams = []): array
```

```
public function initMessageEvent(array $bodyArgs = []): array
```

- #### Actions with devices

    [](#actions-with-devices)

```
public function createDevice(array $bodyArgs = []): array
```

```
public function updateDevice(string $deviceId, array $bodyArgs = []): array
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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 ~0 days

Total

2

Last Release

384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ff9517ef0183308d7cf2a5a0f262183032cf61198e70f845879af9dff706f56?d=identicon)[qqzii](/maintainers/qqzii)

---

Top Contributors

[![qqzii](https://avatars.githubusercontent.com/u/83667421?v=4)](https://github.com/qqzii "qqzii (1 commits)")

### Embed Badge

![Health badge](/badges/qqzii-map-client/health.svg)

```
[![Health](https://phpackages.com/badges/qqzii-map-client/health.svg)](https://phpackages.com/packages/qqzii-map-client)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)

PHPackages © 2026

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