PHPackages                             asabanovic/twittersearch - 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. asabanovic/twittersearch

ActiveLibrary[API Development](/categories/api)

asabanovic/twittersearch
========================

Application Authentication Only - Search Twitter API

v1.0.1(9y ago)035MITPHP

Since Mar 21Pushed 9y agoCompare

[ Source](https://github.com/asabanovic/twittersearch)[ Packagist](https://packagist.org/packages/asabanovic/twittersearch)[ RSS](/packages/asabanovic-twittersearch/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Twitter Search
==============

[](#twitter-search)

Application Authentication Only - Search Twitter API

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

[](#installation)

Pull the project using composer:

```
composer require asabanovic/twittersearch
```

Usage
-----

[](#usage)

Twitter Search is a light version, with app-only authentication (all that is required is an app key and app secret), used to search tweets by its queries defined in the official Twitter documentation ().

Note: Make sure you wrap calls in try/catch block as it will throw exceptions.

Example
-------

[](#example)

```
require ('vendor/autoload.php');
use TwitterSearch\Twitter;

try {
    $app_key = 'xxxxxxxxxxxxxxxxxxx';
    $app_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    $client = new \GuzzleHttp\Client();

    $twitter = new Twitter($client, $app_key, $app_secret);
    $twitter->searchTweets('#Berlin filter:safe', 5);

    $status_code = $twitter->getStatusCode(); // Example: 200 OK
    $tweets = $twitter->getResponse(); // Array of objects
} catch (\Exception $e) {

}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3387d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2763164?v=4)[Adnan Sabanovic](/maintainers/asabanovic)[@asabanovic](https://github.com/asabanovic)

### Embed Badge

![Health badge](/badges/asabanovic-twittersearch/health.svg)

```
[![Health](https://phpackages.com/badges/asabanovic-twittersearch/health.svg)](https://phpackages.com/packages/asabanovic-twittersearch)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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