PHPackages                             ericmuigai/botometer-php - 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. ericmuigai/botometer-php

ActiveLibrary

ericmuigai/botometer-php
========================

A PHP API for Botometer by OSoMe.

v1.0.1(5y ago)1251MITPHP

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ericmuigai/botometer-php)[ Packagist](https://packagist.org/packages/ericmuigai/botometer-php)[ RSS](/packages/ericmuigai-botometer-php/feed)WikiDiscussions master Synced 6d ago

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

Botometer PHP API
=================

[](#botometer-php-api)

Converted from [Botometer PHP API](https://github.com/IUNetSci/botometer-python)

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

[](#installation)

`composer require ericmuigai/botometer-php`

```
$botometer = new \Botometer\Botometer(
		$consumerKey, $consumerSecret, $accessToken, $accessTokenSecret, $rapidApiKey
	         );

// Check a single account by screen name
$result = $botometer->checkAccount( '@clayadavis' );

// Check a single account by id
$result = $botometer->checkAccount( 1548959833 );

$accounts = ['@clayadavis', '@onurvarol', '@jabawack'];
$results = $botometer->checkAccountsIn( $accounts);
foreach ($results as $screenName => $result) {
	//Do stuff with `$screenName` and `$result`
}

```

Result

```
{
  "cap": {
    "english": 0.0011785984309163565,
    "universal": 0.0016912294273666159
  },
  "categories": {
    "content": 0.058082395351262375,
    "friend": 0.044435259626385865,
    "network": 0.07064549990637549,
    "sentiment": 0.07214003430676995,
    "temporal": 0.07924665710801207,
    "user": 0.027817972609638725
  },
  "display_scores": {
    "content": 0.3,
    "english": 0.1,
    "friend": 0.2,
    "network": 0.4,
    "sentiment": 0.4,
    "temporal": 0.4,
    "universal": 0.1,
    "user": 0.1
  },
  "scores": {
    "english": 0.0215615093045025,
    "universal": 0.0254864249403189
  },
  "user": {
    "id_str": "1548959833",
    "screen_name": "clayadavis",
    "...": "..."
  }
}
```

For more information on this response object, consult the [API Overview](https://rapidapi.com/OSoMe/api/botometer-pro/details) on RapidAPI.

Install instructions
--------------------

[](#install-instructions)

Dependencies
------------

[](#dependencies)

- [abraham/twitteroauth](https://github.com/abraham/twitteroauth)
- [mashape/unirest-php](https://github.com/Kong/unirest-php)

### RapidAPI key

[](#rapidapi-key)

Our API is served via [RapidAPI](//rapidapi.com). You must sign up for a free account in order to obtain a RapidAPI secret key. The easiest way to get your secret key is to visit [our API endpoint page](https://rapidapi.com/OSoMe/api/botometer-pro/endpoints)and look in the endpoint's header parametsrs for the "X-RapidAPI-Key" as shown below:

[![Screenshot of RapidAPI header parameters](/docs/rapidapi_key.png)](/docs/rapidapi_key.png)

### Twitter app

[](#twitter-app)

In order to access Twitter's API, one needs to have/create a [Twitter app](https://apps.twitter.com/). Once you've created an app, the authentication info can be found in the "Keys and Access Tokens" tab of the app's properties: [![Screenshot of app "Keys and Access Tokens"](/docs/twitter_app_keys.png)](/docs/twitter_app_keys.png)

Authentication
--------------

[](#authentication)

By default, Botometer uses **user authentication** when interacting with Twitter's API as it is the least restrictive and the ratelimit matches with Botometer's **Pro** plan: 180 requests per 15-minute window. One can instead use Twitter's **application authentication** in order to take advantage of the higher ratelimit that matches our **Ultra** plan: 450 requests per 15-minute window. Do note the differences between user and app-only authentication found under the header "Twitter API Authentication Model" in [Twitter's docs on authentication](https://developer.twitter.com/en/docs/basics/authentication/overview/oauth).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

2167d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ericmuigai-botometer-php/health.svg)

```
[![Health](https://phpackages.com/badges/ericmuigai-botometer-php/health.svg)](https://phpackages.com/packages/ericmuigai-botometer-php)
```

###  Alternatives

[laravel-notification-channels/twitter

This package makes it easy to send notifications via Twitter with Laravel

176215.7k1](/packages/laravel-notification-channels-twitter)[oauth-io/oauth

OAuth that just works !

90141.4k1](/packages/oauth-io-oauth)[rezozero/mixedfeed

A PHP library to get social networks feeds and merge them

11130.4k](/packages/rezozero-mixedfeed)[bandwidth/sdk

Bandwidth's set of APIs

16948.8k1](/packages/bandwidth-sdk)[messagemedia/messages-sdk

The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.

13390.6k](/packages/messagemedia-messages-sdk)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

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