PHPackages                             93devs/nine3-twitter-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. 93devs/nine3-twitter-api

ActiveLibrary[API Development](/categories/api)

93devs/nine3-twitter-api
========================

0488PHP

Since Nov 23Pushed 4y agoCompare

[ Source](https://github.com/93digital/twitter-api)[ Packagist](https://packagist.org/packages/93devs/nine3-twitter-api)[ RSS](/packages/93devs-nine3-twitter-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Twitter Class
=============

[](#twitter-class)

Twitter API library which retreives a limited amount of tweets, answers and retweets from a given user twitter account. The data retreived is stored in **wp\_options** as a serializez string data.

Data is updated every **5 minutes** but the time the data is updated can be changed. It is not recommended to set update data to 0 because Twitter has restrictions about API abusive call rates.

This is a static class therefore does not have to be instantiated.

User Twitter APP data can be set in Admin menu -&gt; Appaerance -&gt; Theme settings.

How to use
----------

[](#how-to-use)

- In extras.php add the following line of code :

    ```

    ```
- Log in into your project's **admin panel**. Then open **Appareance -&gt; Theme settings** in the lef menu.
- Open the **Twitter API** tab. Fill the form with the client Twitter APP data. In order to **get all the tokens** and consumer key you need to make the class work you will need to create a Twitter APP using the client Twitter account.
- You can also set the **Number of Tweets** you want to retrieve and how ofter the **cache is cleared**. Twitter API has a limit in the number of request you can perform per day.
- Default number of Tweets retrieved per request is **5**.
- Save the form.
- Call static method **return\_html** to get an ul HTML element which contains all the Twitter data. This method accpets parameters. Check usage\_example.php for further information.

    ```

    ```
- Call static method **check\_twitter\_data()** to retrieve an object which contains the twitter data.

    ```

    ```
- Modify the attribute **$minutes\_after\_call** in method **check\_retrieve\_form\_api()**to change the time passed since last API call.
- Modify the attribute **$request** key *count* in method **return\_tweet** to change the number of tweets retreived

Check file \*\*usage\_example.php\*\* located in this repository for a full working example.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47026068?v=4)[claritydevs](/maintainers/claritydevs)[@claritydevs](https://github.com/claritydevs)

---

Top Contributors

[![MattKnight93](https://avatars.githubusercontent.com/u/83399317?v=4)](https://github.com/MattKnight93 "MattKnight93 (9 commits)")[![VicLobins93](https://avatars.githubusercontent.com/u/58182607?v=4)](https://github.com/VicLobins93 "VicLobins93 (2 commits)")

---

Tags

phptwittertwitter-apiwordpress

### Embed Badge

![Health badge](/badges/93devs-nine3-twitter-api/health.svg)

```
[![Health](https://phpackages.com/badges/93devs-nine3-twitter-api/health.svg)](https://phpackages.com/packages/93devs-nine3-twitter-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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