PHPackages                             cossou/trak-io-api-client - 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. cossou/trak-io-api-client

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

cossou/trak-io-api-client
=========================

PHP Trak.io Api Client built on Guzzle

v1.1.0(11y ago)204.0k1[1 issues](https://github.com/cossou/trak-io-api/issues)MITPHP

Since Feb 27Pushed 11y ago3 watchersCompare

[ Source](https://github.com/cossou/trak-io-api)[ Packagist](https://packagist.org/packages/cossou/trak-io-api-client)[ Docs](https://github.com/cossou/trak-io-api)[ RSS](/packages/cossou-trak-io-api-client/feed)WikiDiscussions master Synced 3d ago

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

Trak.io Api Client
==================

[](#trakio-api-client)

[![Build Status](https://camo.githubusercontent.com/73f339c244df90d2cb65e27934c1ed875aee2c5bdf3893bd64fdf66cf5688e89/68747470733a2f2f7472617669732d63692e6f72672f636f73736f752f7472616b2d696f2d6170692e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cossou/trak-io-api)[![Latest Stable Version](https://camo.githubusercontent.com/dc858fe96dc40cbcef95e65962b3774916940a4889f2553989356ef68fe8e5dd/68747470733a2f2f706f7365722e707567782e6f72672f636f73736f752f7472616b2d696f2d6170692d636c69656e742f762f737461626c652e706e67)](https://packagist.org/packages/cossou/trak-io-api-client)[![Total Downloads](https://camo.githubusercontent.com/140b58ddcdb52583bfd18ef2912ca6801986c0f02ac3b0c1e56ad27711609224/68747470733a2f2f706f7365722e707567782e6f72672f636f73736f752f7472616b2d696f2d6170692d636c69656e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/cossou/trak-io-api-client)[![Latest Unstable Version](https://camo.githubusercontent.com/bc4869e2f68e7fcdc1c6c7b9af2d31ec5cd7d6f91ca083f6a9e1a2f85fba44f2/68747470733a2f2f706f7365722e707567782e6f72672f636f73736f752f7472616b2d696f2d6170692d636c69656e742f762f756e737461626c652e706e67)](https://packagist.org/packages/cossou/trak-io-api-client)[![License](https://camo.githubusercontent.com/8972ad06cbaf42632b33fd3f7bcec2f4a191f43d9426533014162a721bd46dc4/68747470733a2f2f706f7365722e707567782e6f72672f636f73736f752f7472616b2d696f2d6170692d636c69656e742f6c6963656e73652e706e67)](https://packagist.org/packages/cossou/trak-io-api-client)

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

[](#installation)

Install via [Composer](http://getcomposer.org/):

```
{
    "require": {
        "cossou/trak-io-api-client": "1.0.*"
    }
}

```

Methods available
-----------------

[](#methods-available)

- identify
- alias
- track
- annotate
- distinct\_id
- channel

Documentation:

Examples
--------

[](#examples)

Quick [Identify](http://docs.trak.io/identify.html) example:

```
require_once 'vendor/autoload.php';

use Cossou\Trakio;

$trakio = Trakio::init('YOUR-API-TOKEN');

// or
// $trakio = Trakio::init('YOUR-API-TOKEN', array('distinct_id' => 123));

try {
    $response = $trakio->identify(array('distinct_id' => 123, 'properties' => array('name' => 'Hélder Duarte')));
    var_dump($response);
} catch(Exception $e) {
    echo $e->getMessage();
}
```

Laravel
-------

[](#laravel)

Add to your app/config/app.php file and scroll down to your providers and add

```
'providers' => array(
    ...
    'Cossou\TrakioServiceProvider',
)
```

And the alias:

```
'aliases' => array(
	...
   	'Trakio'		  => 'Cossou\Facades\Trakio',
```

And finally you run `php artisan config:publish cossou/trak-io-api-client` and fill in your API key.

And that's it!

### Quick Laravel Example

[](#quick-laravel-example)

```
Route::get('/', function()
{
	$trak = new Trakio;

	try {
		$response = $trak::identify(array('distinct_id' => 123, 'properties' => array('name' => 'Hélder Duarte')));
		dd($response);
	} catch(Exception $e) {
		dd($e->getMessage());
	}
}
```

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

5

Last Release

4105d ago

Major Versions

0.0.2 → v1.0.02014-03-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/96050e645d10d623e8b463e3c6db5a030d9e82642a56c84dd070e5a1f0db4740?d=identicon)[cossou](/maintainers/cossou)

---

Top Contributors

[![cossou](https://avatars.githubusercontent.com/u/1337112?v=4)](https://github.com/cossou "cossou (28 commits)")

---

Tags

apiclientGuzzletraktrak.io

### Embed Badge

![Health badge](/badges/cossou-trak-io-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/cossou-trak-io-api-client/health.svg)](https://phpackages.com/packages/cossou-trak-io-api-client)
```

###  Alternatives

[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)

PHPackages © 2026

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