PHPackages                             shucream0117/twitcasting-oauth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. shucream0117/twitcasting-oauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

shucream0117/twitcasting-oauth
==============================

OAuth library for TwitCastingAPIv2

101592PHP

Since Jul 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/shucream0117/twitcasting-oauth)[ Packagist](https://packagist.org/packages/shucream0117/twitcasting-oauth)[ RSS](/packages/shucream0117-twitcasting-oauth/feed)WikiDiscussions development Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

TwitCastingOAuth
================

[](#twitcastingoauth)

for [TwitCasting API v2](https://twitcasting.tv/indexapi.php)

official document =&gt;

Requirement
-----------

[](#requirement)

- PHP 7.1.x

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

[](#installation)

via composer.

```
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require shucream0117/twitcasting-oauth:dev-master
```

Usage
-----

[](#usage)

### Examples

[](#examples)

#### Get Confirmation Page Url

[](#get-confirmation-page-url)

```
$csrfToken = 'csrf-token';
$url = (new AuthCodeGrant('your-client-id', 'your-secret-key', 'your-callback-url'))->getConfirmPageUrl($csrfToken);
```

#### Get AccessToken

[](#get-accesstoken)

```
// handle callback request

$state = $_GET['state'] ?? null; // this should be same as CSRF token you set to AuthCodeGrant::getConfirmPageUrl()
$code = $_GET['code'] ?? null; // handle error if $code is null
$accessToken = $grant->requestAccessToken($code, new AppExecutor('your-client-id', 'your-secret-key'));
```

#### Request as an user

[](#request-as-an-user)

```
// GET /verify_credentials
$accessTokenEntity = new AccessToken('access-token');
$executor = new UserExecutor($accessTokenEntity);
$response = $executor->get("verify_credentials");
$userInfo = json_decode($response->getBody()->getContents(), true);

// POST /movies/:movie_id/comments
$movieId = 1234;
$response = $executor->post("movies/{$movieId}/comments", ['comment' => 'hello!!']);
```

#### Request as an application

[](#request-as-an-application)

```
// GET /users/twitcasting/jp

$executor = new AppExecutor('your-client-id', 'your-secret-key');
$response = $executor->get("users/twitcasting_jp");
$userInfo = json_decode($response->getBody()->getContents(), true);
```

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/
```

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/12001229c998d3b6726afc8439082125ff58458cbb27345c430c10e7f4e869fa?d=identicon)[shucream0117](/maintainers/shucream0117)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/shucream0117-twitcasting-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/shucream0117-twitcasting-oauth/health.svg)](https://phpackages.com/packages/shucream0117-twitcasting-oauth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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