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

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

jespanag/customerio
===================

PHP API for Customer.io with v2 support

3.5.9(2y ago)11.5kMITPHPPHP ~7.3|^8.0

Since Nov 13Pushed 2y agoCompare

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

READMEChangelogDependencies (2)Versions (41)Used By (0)

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:

```
