PHPackages                             traitify/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. [API Development](/categories/api)
4. /
5. traitify/client

ActiveLibrary[API Development](/categories/api)

traitify/client
===============

Traitify API Client

1.0.0.x-dev(11y ago)5703[2 issues](https://github.com/traitify/traitify-php/issues)MITPHPCI passing

Since Jun 17Pushed 1y ago13 watchersCompare

[ Source](https://github.com/traitify/traitify-php)[ Packagist](https://packagist.org/packages/traitify/client)[ Docs](http://www.traitify.com)[ RSS](/packages/traitify-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Traitify Api PHP Library
========================

[](#traitify-api-php-library)

This is a helper library for the Traitify API -

### Installing via Composer

[](#installing-via-composer)

The recommended way to install the Traitify library is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the library as a dependency
php composer.phar require traitify/client dev-master
```

or alternatively, you can add it directly to your `composer.json` file.

```
{
    "require": {
        "traitify/client": "dev-master"
    }
}
```

Then install via Composer:

```
composer install
```

Finally, require Composer's autoloader in your PHP script:

```
require __DIR__.'/vendor/autoload.php';
```

### This library is best used with Traitify JS

[](#this-library-is-best-used-with-traitify-js)

### Secret Key Required

[](#secret-key-required)

For instructions on obtaining a public key visit:

### Using The Traitify PHP Client Library:

[](#using-the-traitify-php-client-library)

#### Create an instance of the Client

[](#create-an-instance-of-the-client)

```
$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->createAssessment("career-deck");
```

#### Get Slides

[](#get-slides)

```
$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getSlides('a45rasw3-45s3a32-234aas45'); /* Example Assessment Id */
```

#### Get Decks

[](#get-decks)

```
$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getDecks();
```

#### Get Personality Types

[](#get-personality-types)

```
$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getPersonalityTypes('a45rasw3-45s3a32-234aas45'); /* Example Assessment Id */
```

#### Get Personality Traits

[](#get-personality-traits)

```
$client = new Traitify\Client([
  'host'=>'api-sandbox.traitify.com', /* Example Host */
  'version'=>'v1', /* Example Version */
  'secretKey'=>'34aeraw23-3a43a32-234a34as42' /* Example Secret Key */
]);
$client->getPersonalityTraits('a45rasw3-45s3a32-234aas45'); /* Example Assessment Id */
```

### Contributing

[](#contributing)

#### Building, Testing and Bundling:

[](#building-testing-and-bundling)

Installing PHPUnit

```
$ composer install
$ phpunit tests/traitify_client.php
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.1% 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

Unknown

Total

1

Last Release

4350d ago

### Community

Maintainers

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

---

Top Contributors

[![carsonwright](https://avatars.githubusercontent.com/u/1863555?v=4)](https://github.com/carsonwright "carsonwright (23 commits)")[![hashrocketeer](https://avatars.githubusercontent.com/u/317960?v=4)](https://github.com/hashrocketeer "hashrocketeer (6 commits)")[![efleming](https://avatars.githubusercontent.com/u/94797?v=4)](https://github.com/efleming "efleming (4 commits)")[![tomprats](https://avatars.githubusercontent.com/u/1906547?v=4)](https://github.com/tomprats "tomprats (4 commits)")[![caseysoftware](https://avatars.githubusercontent.com/u/134579?v=4)](https://github.com/caseysoftware "caseysoftware (2 commits)")[![ryanlchandler](https://avatars.githubusercontent.com/u/7116095?v=4)](https://github.com/ryanlchandler "ryanlchandler (2 commits)")

---

Tags

apiclienttraitifypersonality

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/traitify-client/health.svg)

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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