PHPackages                             artstorm/monkeylearn-api - 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. artstorm/monkeylearn-api

AbandonedArchivedLibrary[API Development](/categories/api)

artstorm/monkeylearn-api
========================

MonkeyLearn API v2 client

0.5(10y ago)238MITPHPPHP &gt;=5.4.0

Since Feb 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/artstorm/monkeylearn-api-php)[ Packagist](https://packagist.org/packages/artstorm/monkeylearn-api)[ Docs](https://github.com/artstorm/monkeylearn-api-php)[ RSS](/packages/artstorm-monkeylearn-api/feed)WikiDiscussions develop Synced 1mo ago

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

MonkeyLearn API PHP Client
==========================

[](#monkeylearn-api-php-client)

[![Build Status](https://camo.githubusercontent.com/bf704ccdd46b74ce4b231abc9afe067594475f2f56b5e9444ed2b95baffeba0c/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f61727473746f726d2f6d6f6e6b65796c6561726e2d6170692d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/artstorm/monkeylearn-api-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/204d4d26c2acaff7bea5b377bd56e15bf3a4506e876101c526cbd48bb65ace63/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f61727473746f726d2f6d6f6e6b65796c6561726e2d6170692d7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/artstorm/monkeylearn-api-php/)[![Scrutinizer Coverage Status](https://camo.githubusercontent.com/63101cd9c79a64596ef9e80e74288e3c997fd1b4a29dd64c6f3d8d01a208230f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f61727473746f726d2f6d6f6e6b65796c6561726e2d6170692d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/artstorm/monkeylearn-api-php/code-structure)[![StyleCI](https://camo.githubusercontent.com/e87c1e835316d2775133444085e29a86db0226eee68b1fb623964c2876179451/68747470733a2f2f7374796c6563692e696f2f7265706f732f33313833373633352f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/31837635)[![MIT licensed](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/artstorm/monkeylearn-api-php/master/LICENSE.md)

An easy to use client to consume MonkeyLearn API v2 with PHP.

Install
-------

[](#install)

Via Composer

```
$ composer require artstorm/monkeylearn-api
```

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4.0.
- PHP Curl.

Basic usage of MonkeyLearn API PHP Client
-----------------------------------------

[](#basic-usage-of-monkeylearn-api-php-client)

```
$token = 'monkeylearn-api-token';
$client = new Artstorm\MonkeyLearn\Client($token);

$textToClassify = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
$module = 'module_id';
$response = $client->classification->classify($textToClassify, $module);

print_r($response->result());
```

### Debug and Sandbox

[](#debug-and-sandbox)

MonkeyLearn has a Sandbox mode that can be used for custom modules. There is also an option to include debug data in the responses. These options can be enabled with the methods `Client::sandbox()` and `Client::debug()`. The methods are chainable.

```
$response = $client->sandbox()->classification->classify($text, $module);
$response = $client->debug()->classification->classify($text, $module);
$response = $client->sandbox()->debug()->classification->classify($text, $module);
```

### Query Limits

[](#query-limits)

To find out current query limits with MonkeyLearn API, that information is available in the response object.

```
$response = $client->classification->classify($text, $module);

$limits = $response->limits();
```

License
-------

[](#license)

The library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~37 days

Total

2

Last Release

3699d ago

### Community

Maintainers

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

---

Top Contributors

[![artstorm](https://avatars.githubusercontent.com/u/1165965?v=4)](https://github.com/artstorm "artstorm (103 commits)")

---

Tags

apimonkeylearn

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/artstorm-monkeylearn-api/health.svg)

```
[![Health](https://phpackages.com/badges/artstorm-monkeylearn-api/health.svg)](https://phpackages.com/packages/artstorm-monkeylearn-api)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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