PHPackages                             userscape/customerio - 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. userscape/customerio

ActiveLibrary[API Development](/categories/api)

userscape/customerio
====================

PHP API for Customer.io

2.1.1(5y ago)33824.7k↓43.2%15[1 PRs](https://github.com/UserScape/php-customerio/pulls)1MITPHPCI failing

Since Mar 28Pushed 5y ago7 watchersCompare

[ Source](https://github.com/UserScape/php-customerio)[ Packagist](https://packagist.org/packages/userscape/customerio)[ RSS](/packages/userscape-customerio/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (1)

php-customerio
==============

[](#php-customerio)

PHP API Integration with Customer.io

> "Good enough!"

[![Build Status](https://camo.githubusercontent.com/afa19e5a2fc6132fd6eb511f7f39cf171695559335850dac3702d27fa26dbc80/68747470733a2f2f7472617669732d63692e6f72672f5573657253636170652f7068702d637573746f6d6572696f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/UserScape/php-customerio)

Usage
-----

[](#usage)

```
$api = new Customerio\Api($siteId, $apiSecret, new Customerio\Request);

$response = $api->createCustomer(
    'someid001',
    'some@email.com',
    array('arbitrary-data' => 'foobarbaz')
);

if ($response->success()) {
    // Continue on with life
} else {
    // Learn from your mistakes
    echo $response->message();
}
```

API Methods
-----------

[](#api-methods)

Create Customer:

```
createCustomer('someid001', 'some@email.com', array('arbitrary-data' => 'foobarbaz'));

```

Update Customer:

```
updateCustomer('someid001', 'some@email.com', array('arbitrary-data' => 'foobarbaz'));

```

Delete Customer:

```
deleteCustomer('someid001');

```

Fire Event:

```
fireEvent('someid001', 'event-name', array('arbitrary-value' => 3.14));

```

Fire Historical Event:

```
fireEvent('someid001', 'event-name', array('arbitrary-value' => 3.14), 1420070400);

```

Fire Anonymous Event: ()

```
fireAnonymousEvent('event-name', array('arbitrary-value' => 3.14));

```

Record Pageview:

```
recordPageview('someid001', 'https://www.full-pageview-url.com/', 'https://www.optional-full-referrer-url.com/');

```

Response Object
---------------

[](#response-object)

All methods return a `Response` object which contains the following methods:

```
success() // Boolean

message() // String

```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% 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 ~356 days

Recently: every ~543 days

Total

8

Last Release

1988d ago

Major Versions

1.0.4 → 2.0.02017-02-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ffe7f19bdf080aaa14107239624d682f2e1b139b9459e93b56966649a4d7873?d=identicon)[fideloper](/maintainers/fideloper)

![](https://www.gravatar.com/avatar/d4d3976aef1be1d0fd120241b9f2d4e13e1fedafb44e6093c8410c0e47b3ab33?d=identicon)[ianlandsman](/maintainers/ianlandsman)

---

Top Contributors

[![fideloper](https://avatars.githubusercontent.com/u/467411?v=4)](https://github.com/fideloper "fideloper (40 commits)")[![chrisvanpatten](https://avatars.githubusercontent.com/u/1231306?v=4)](https://github.com/chrisvanpatten "chrisvanpatten (9 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (4 commits)")[![frankmichel](https://avatars.githubusercontent.com/u/236225?v=4)](https://github.com/frankmichel "frankmichel (2 commits)")[![PATROMO](https://avatars.githubusercontent.com/u/318564?v=4)](https://github.com/PATROMO "PATROMO (2 commits)")[![ericlbarnes](https://avatars.githubusercontent.com/u/116662?v=4)](https://github.com/ericlbarnes "ericlbarnes (1 commits)")[![ianlandsman](https://avatars.githubusercontent.com/u/53144?v=4)](https://github.com/ianlandsman "ianlandsman (1 commits)")[![ninjaparade](https://avatars.githubusercontent.com/u/228899?v=4)](https://github.com/ninjaparade "ninjaparade (1 commits)")[![waylanwong](https://avatars.githubusercontent.com/u/3076939?v=4)](https://github.com/waylanwong "waylanwong (1 commits)")

---

Tags

Customeriophp customer.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/userscape-customerio/health.svg)

```
[![Health](https://phpackages.com/badges/userscape-customerio/health.svg)](https://phpackages.com/packages/userscape-customerio)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/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)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

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

Files.com PHP SDK

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

PHPackages © 2026

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