PHPackages                             ryota-murakami/twitter-bearer-token-getter - 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. [CLI &amp; Console](/categories/cli)
4. /
5. ryota-murakami/twitter-bearer-token-getter

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

ryota-murakami/twitter-bearer-token-getter
==========================================

CLI tool of get twitter api bearer token.

1.0.1(9y ago)414MITPHPPHP ^5.3.2 || ^7.0

Since Jan 29Pushed 7y agoCompare

[ Source](https://github.com/ryota-murakami/twitter-bearer-token-getter)[ Packagist](https://packagist.org/packages/ryota-murakami/twitter-bearer-token-getter)[ RSS](/packages/ryota-murakami-twitter-bearer-token-getter/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Twitter Bearer Token Getter
===========================

[](#twitter-bearer-token-getter)

[![Build Status](https://camo.githubusercontent.com/db6b0c1e4f2e4d63e2b5911fae567484190d751e547abb8d6e42926ebbe60775/68747470733a2f2f7472617669732d63692e6f72672f72796f74612d6d7572616b616d692f747769747465722d6265617265722d746f6b656e2d6765747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ryota-murakami/twitter-bearer-token-getter)[![Latest Stable Version](https://camo.githubusercontent.com/69b21f8bc7181ef08ffb6f2f823445e5ca1a5245b8542c25245bc4f62db6876b/68747470733a2f2f706f7365722e707567782e6f72672f72796f74612d6d7572616b616d692f747769747465722d6265617265722d746f6b656e2d6765747465722f76657273696f6e)](https://packagist.org/packages/ryota-murakami/twitter-bearer-token-getter)[![Total Downloads](https://camo.githubusercontent.com/f3af57e85938607c2c151c2045857ffcacf99d0ffff5a3d7e8232a142957c2d3/68747470733a2f2f706f7365722e707567782e6f72672f72796f74612d6d7572616b616d692f747769747465722d6265617265722d746f6b656e2d6765747465722f646f776e6c6f616473)](https://packagist.org/packages/ryota-murakami/twitter-bearer-token-getter)[![License](https://camo.githubusercontent.com/b1685f0e868738939afdd29ba2e9edf938d0478b4d7bf9b0186326b414990f3e/68747470733a2f2f706f7365722e707567782e6f72672f72796f74612d6d7572616b616d692f747769747465722d6265617265722d746f6b656e2d6765747465722f6c6963656e7365)](https://packagist.org/packages/ryota-murakami/twitter-bearer-token-getter)

CLI tool of twitter API Bearer Token.

[![demo](./demo.gif)](./demo.gif)

In order to acquire a bearer token, you need to send a POST request directly to the endpoint of twitter api.
[Official document of bearer token](https://dev.twitter.com/oauth/reference/post/oauth2/token)

We have to send some information to the 'Authorization' HTTP Header with credentialization, the process is a little troublesome.

It is a tool to alleviate such trouble and to obtain a bearer token easily.

Preparation
===========

[](#preparation)

1. Consumer Key(API Key)
2. Consumer Secret (API Secret)

Installation
============

[](#installation)

```
composer global require ryota-murakami/twitter-bearer-token-getter

```

If you have not gone yet, so please do the following.

```
export PATH="$PATH:$HOME/.composer/vendor/bin"

```

Run
===

[](#run)

```
twitter-bearer-token-getter

```

After Run,
You will be prompted for the consumer key and consumer secret interactively at the terminal so please enter them according to the console message.

If the above two information are correctly entered, a bearer token will be displayed on the terminal.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3321d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5501268?v=4)[Ryota Murakami](/maintainers/ryota-murakami)[@ryota-murakami](https://github.com/ryota-murakami)

---

Top Contributors

[![ryota-murakami](https://avatars.githubusercontent.com/u/5501268?v=4)](https://github.com/ryota-murakami "ryota-murakami (26 commits)")

---

Tags

composer-packagesphptwitter-api

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ryota-murakami-twitter-bearer-token-getter/health.svg)

```
[![Health](https://phpackages.com/badges/ryota-murakami-twitter-bearer-token-getter/health.svg)](https://phpackages.com/packages/ryota-murakami-twitter-bearer-token-getter)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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