PHPackages                             commercesignals/csapi-php - 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. commercesignals/csapi-php

ActiveLibrary[API Development](/categories/api)

commercesignals/csapi-php
=========================

API client library to work with the Commerce Signals platform.

v0.0.2(9y ago)116[1 issues](https://github.com/commercesignals/csapi-php/issues)BSD-3-ClausePHPPHP &gt;=5.6

Since Mar 17Pushed 8y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

[![Databridge by Commerce Signals](https://camo.githubusercontent.com/ec159c3226a35df908ebb05a5cb1ff86afe568c49cb9bfd079c98e0677bf9461/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f636f6d7369672d6d61726b6574696e672f646174616272696467652d626c61636b2d3430302e706e67)](https://camo.githubusercontent.com/ec159c3226a35df908ebb05a5cb1ff86afe568c49cb9bfd079c98e0677bf9461/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f636f6d7369672d6d61726b6574696e672f646174616272696467652d626c61636b2d3430302e706e67)

[![Build Status](https://camo.githubusercontent.com/94edd297f334c0e8eb6609daad5ebc0b204a3cd9fc588cc45a1d145d8bf34c28/68747470733a2f2f7472617669732d63692e6f72672f636f6d6d657263657369676e616c732f63736170692d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/commercesignals/csapi-php) [![License](https://camo.githubusercontent.com/b3775a2de17853a90995faa104f941eef3ad3c40cc89e34b8b1eaea014614d4e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d425344253230332d2d436c617573652d626c75652e737667)](https://opensource.org/licenses/BSD-3-Clause)

Library to interface with the Commerce Signals platform.

Installing with Composer
------------------------

[](#installing-with-composer)

`composer require commercesignals/csapi-php`

Usage
-----

[](#usage)

### Authorize your client

[](#authorize-your-client)

```
const CERT_FILE_NAME = 'my-api-key-private-cert.pem';
const API_KEY = '0b70012a-5a7a-2b90-815a-aa73a7f8001a'; // My API Key
const API_BASE = 'https://api.commercesignals.com/';

$api = new CommerceSignals\API(API_BASE, [
  'apiKey' => API_KEY,
  'cert' => file_get_contents(__DIR__ . '/' . CERT_FILE_NAME)
]);
```

### The API class

[](#the-api-class)

The main API class is used to build the API request to issue.

The methods of the API call can be chained to create the segments of the request you are making. Each chained method has an optional `$id` paramater that can be passed to request a specific resource from the segment part. The final method in the call determins the type of HTTP request being made and has an optional `$payload` paramater that will be used as the request BODY.

```
get() => GET request
update() => PATCH request
save() => POST or PUT (depending on if the payload BODY has an id set or not)

```

##### Example

[](#example)

```
  $api->signals('0a000337-574f-223e-8156-4f3a98e707a1')
    ->requests('0a00017c-5aac-1195-82ba-ae6ea3fa000a')
    ->results()
    ->get();
```

##### HTTP Request

[](#http-request)

`GET https://api.commercesignals.com/rest/v1/signals/0a00...07a1/requests/0a00...a000a/results`

### Calling Endpoint Examples

[](#calling-endpoint-examples)

- [Signals](docs/signals.md)
- [Submitting Signal Requests](docs/submitting-signal-requests.md)
- [Campaigns](docs/campaigns.md)
- [Audience Files](docs/audience-files.md)
- [Audiences](docs/audiences.md)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3346d ago

PHP version history (2 changes)v0.0.1PHP &gt;=5.4

v0.0.2PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![cwilsn](https://avatars.githubusercontent.com/u/382106?v=4)](https://github.com/cwilsn "cwilsn (23 commits)")

---

Tags

api-wrapperphpapilibrary

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/commercesignals-csapi-php/health.svg)

```
[![Health](https://phpackages.com/badges/commercesignals-csapi-php/health.svg)](https://phpackages.com/packages/commercesignals-csapi-php)
```

###  Alternatives

[gorkalaucirica/hipchat-v2-api-client

Hipchat v2 API client

80226.6k6](/packages/gorkalaucirica-hipchat-v2-api-client)

PHPackages © 2026

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