PHPackages                             printu/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. [HTTP &amp; Networking](/categories/http)
4. /
5. printu/customerio

ActiveLibrary[HTTP &amp; Networking](/categories/http)

printu/customerio
=================

PHP API for Customer.io

3.6.1(4mo ago)251.2M↓48.7%13[1 issues](https://github.com/printu/customerio/issues)2MITPHPPHP ~7.3|^8.0CI failing

Since Nov 13Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/printu/customerio)[ Packagist](https://packagist.org/packages/printu/customerio)[ Docs](http://customer.io/)[ RSS](/packages/printu-customerio/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (43)Used By (2)

Customer.io API Client
======================

[](#customerio-api-client)

PHP bindings for the Customer.io API.

[API Documentation](https://www.customer.io/docs/api/)

[![Actions Status](https://github.com/printu/customerio/workflows/PHP%20Composer/badge.svg?branch=master)](https://github.com/printu/customerio/actions)[![Code Climate](https://camo.githubusercontent.com/66ee056de2192b7130b0e84d61861d8660cbb379948f3879614cee3f37a70503/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7072696e74752f637573746f6d6572696f2f6261646765732f6770612e737667)](https://codeclimate.com/github/printu/customerio)[![Test Coverage](https://camo.githubusercontent.com/08c973cb33b4ef7bffcffe19ca829e3fc11edcbbb4264b4e6f9ce4657bfc118a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7072696e74752f637573746f6d6572696f2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/printu/customerio/coverage)

There are two primary API hosts available for to integrate with:

**Behavioral Tracking**

Behavioral Tracking API is used to identify and track customer data with Customer.io.

**API**

API allows you to read data from your Customer.io account for use in custom workflows in your backend system or for reporting purposes.

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

[](#installation)

The API client can be installed via [Composer](https://github.com/composer/composer).

In your composer.json file:

```
{
    "require": {
        "printu/customerio": "~3.0"
    }
}
```

Once the composer.json file is created you can run `composer install` for the initial package install and `composer update` to update to the latest version of the API client.

The client uses [Guzzle](http://docs.guzzlephp.org/en/stable/).

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

[](#basic-usage)

Remember to include the Composer autoloader in your application:

```

```

Configure your access credentials when creating a client:

```
