PHPackages                             zpearl/comagic-api - 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. zpearl/comagic-api

ActiveLibrary[API Development](/categories/api)

zpearl/comagic-api
==================

php binding for CoMagic API

0.2.4(9y ago)016PHP

Since Jan 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zpearl/comagic-api)[ Packagist](https://packagist.org/packages/zpearl/comagic-api)[ RSS](/packages/zpearl-comagic-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

CoMagic API php client
======================

[](#comagic-api-php-client)

CoMagic php client for:

- Rest API
- Call API

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

[](#installation)

To get started, install package via the Composer package manager:

`composer require zpearl/comagic-api`

Usage
-----

[](#usage)

### Configuring

[](#configuring)

Array is using to configure Rest API and Call API clients.

```
$config = [
    // required for Rest API and optional for Call API
    'login' => 'put_login_here',
    'password' => 'put_password_here',
    // required for Call API if login and password not specified
    'access_token' => 'put_access_token_here',
];
```

Do not foreget to add `Call API` permissions to user if you want to use login and password authorization for Call API

### Rest API

[](#rest-api)

```
use CoMagic\RestApiClient;

$restApi = new RestApiClient($config);
var_dump(
    $restApi->call(['date_from' => '2017-01-10', 'date_till' => '2017-01-13'])
);
```

### Call API

[](#call-api)

API Methods names need to be specified in CamelCase

```
$callApi = new CallApiClient($config);
var_dump($callApi->listCalls());
```

It's possible to get response metadata after API request is made

```
var_dump($callApi->metadata());
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~13 days

Total

6

Last Release

3375d ago

### Community

Maintainers

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

---

Top Contributors

[![pashamesh](https://avatars.githubusercontent.com/u/1695806?v=4)](https://github.com/pashamesh "pashamesh (10 commits)")[![zpearl](https://avatars.githubusercontent.com/u/9035696?v=4)](https://github.com/zpearl "zpearl (4 commits)")

### Embed Badge

![Health badge](/badges/zpearl-comagic-api/health.svg)

```
[![Health](https://phpackages.com/badges/zpearl-comagic-api/health.svg)](https://phpackages.com/packages/zpearl-comagic-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M932](/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.1k34](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

49108.6k2](/packages/fschmtt-keycloak-rest-api-client-php)

PHPackages © 2026

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