PHPackages                             wimkumpen/wit-php-sdk - 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. wimkumpen/wit-php-sdk

ActiveLibrary[API Development](/categories/api)

wimkumpen/wit-php-sdk
=====================

This is a php sdk for the wit.ai API

1.0.0(10y ago)3493[2 issues](https://github.com/wimkumpen/wit-php-sdk/issues)MITPHPPHP &gt;=5.5.0

Since Apr 20Pushed 10y ago2 watchersCompare

[ Source](https://github.com/wimkumpen/wit-php-sdk)[ Packagist](https://packagist.org/packages/wimkumpen/wit-php-sdk)[ Docs](https://github.com/wimkumpen/wit-php-sdk)[ RSS](/packages/wimkumpen-wit-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP SDK FOR WIT.AI API
======================

[](#php-sdk-for-witai-api)

This is a php sdk for the wit.ai API. It's a slim version of the Facebook PHP SDK. Still work in progress... Only supports curl at this moment.

Setup:
------

[](#setup)

Add a `composer.json` file to your project:

```
{
  "require": {
      "wimkumpen/wit-php-sdk": "1.0.*"
  }
}

```

Then provided you have [composer](http://getcomposer.org/) installed, you can run the following command:

```
$ composer.phar install

```

That will fetch the library and its dependencies inside your vendor folder. Then you can add the following to your .php files in order to use the library

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

```

Then you need to `use` the relevant classes, for example:

```
use Wit\Wit;

```

Basic usage:
------------

[](#basic-usage)

```
use Wit\Wit;
$app = new Wit(array(
    'default_access_token' => 'your_access_token')
);

$response = $app->get('/intents');
var_dump($response->getDecodedBody());

$data = [
    "name" => "flight_request",
    "doc"  => "detect flight request",
    "expressions" => [
        ["body" => "fly from incheon to sfo"],
        ["body" => "I want to fly from london to sfo"],
        ["body" => "need a flight from paris to tokyo"],
    ]
];

$response = $app->post('/intents', $data);
var_dump($response->getDecodedBody());

```

Todo:
-----

[](#todo)

- Clean some code out;
- Exceptions;
- Get intent via speech ()
- Implement other Http Clients;
- Implement structured response;
- Define requirements;

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3672d ago

### Community

Maintainers

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

---

Top Contributors

[![wimkumpen](https://avatars.githubusercontent.com/u/2332639?v=4)](https://github.com/wimkumpen "wimkumpen (8 commits)")

---

Tags

phpapifacebookbotwit.ai

### Embed Badge

![Health badge](/badges/wimkumpen-wit-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/wimkumpen-wit-php-sdk/health.svg)](https://phpackages.com/packages/wimkumpen-wit-php-sdk)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)[borsaco/telegram-bot-api-bundle

A simple wrapper for telegram-bot-api.

5633.0k](/packages/borsaco-telegram-bot-api-bundle)[klev-o/crypto-pay-api

Simple and convenient implementation of the Crypto Pay payment system (@CryptoBot)

205.1k](/packages/klev-o-crypto-pay-api)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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