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. [API Development](/categories/api)
4. /
5. qqzii/map-client

ActiveLibrary[API Development](/categories/api)

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 today

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

26

—

LowBetter than 41% of packages

Maintenance45

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

430d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/83667421?v=4)[Artsemi](/maintainers/qqzii)[@qqzii](https://github.com/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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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