PHPackages                             stavarengo/twitter-php-api-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. stavarengo/twitter-php-api-client

ActiveLibrary[API Development](/categories/api)

stavarengo/twitter-php-api-client
=================================

PHP Client Library for https://developer.twitter.com API

v0.0.6(7y ago)12031[2 PRs](https://github.com/stavarengo/twitter-php-api-client/pulls)MITPHPPHP ^7.1

Since Mar 3Pushed 7y agoCompare

[ Source](https://github.com/stavarengo/twitter-php-api-client)[ Packagist](https://packagist.org/packages/stavarengo/twitter-php-api-client)[ RSS](/packages/stavarengo-twitter-php-api-client/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (10)Used By (0)

twitter-php-api-client
======================

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

PHP Client Library for  API

If you are interested in a PHP API for [Twitter](https://developer.twitter.com), that's your library :)

About It
--------

[](#about-it)

- Depends only on PSRs.
- Optionally use cache to use less requests and speed up response.
- You can use it with any application, either if it uses or not factories from PSR-11.
- It should be very easy to use, since I tried to keep all the source code well documented.

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

[](#installation)

Install via `composer`.

```
composer require stavarengo/twitter-php-api-client:^0.0

```

Basic Usage - More complete documentation yet to come
-----------------------------------------------------

[](#basic-usage---more-complete-documentation-yet-to-come)

- Use it directly (without a factory).

    ```
    $client = new \Sta\TwitterPhpApiClient\TwitterClient(null);

    $authResponse = $client->postOauth2Token($consumerKey, $consumerSecret);
    $response = $client->getUsersShow('@username', false, $authResponse->getEntityBearerToken());

    var_dump($response->hasError() ? $response->getEntityError() : $response->getEntityUser());
    ```
- Use our default factory (PSR-11).

    ```
    $client = $container->get(\Sta\TwitterPhpApiClient\Client::class)

    $authResponse = $client->postOauth2Token($consumerKey, $consumerSecret);
    $response = $client->getUsersShow('@username', false, $authResponse->getEntityBearerToken());

    var_dump($response->hasError() ? $response->getEntityError() : $response->getEntityUser());
    ```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~62 days

Recently: every ~91 days

Total

7

Last Release

2664d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/816369?v=4)[Rafael Stavarengo](/maintainers/Stavarengo)[@stavarengo](https://github.com/stavarengo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/stavarengo-twitter-php-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/stavarengo-twitter-php-api-client/health.svg)](https://phpackages.com/packages/stavarengo-twitter-php-api-client)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)

PHPackages © 2026

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