PHPackages                             sshilko/digitsoauth - 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. sshilko/digitsoauth

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

sshilko/digitsoauth
===================

Fabric.io (Digits) Account verification (OAuth)

0.0.5(10y ago)926.2k1[1 issues](https://github.com/sshilko/digitsoauth/issues)MITPHPPHP &gt;=5.3.0

Since Oct 7Pushed 10y agoCompare

[ Source](https://github.com/sshilko/digitsoauth)[ Packagist](https://packagist.org/packages/sshilko/digitsoauth)[ Docs](https://github.com/sshilko/digitsoauth)[ RSS](/packages/sshilko-digitsoauth/feed)WikiDiscussions master Synced 1mo ago

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

Digitsoauth (Verifying a User)
==============================

[](#digitsoauth-verifying-a-user)

Validate users that are authenticated with phone numbers via Fabric.io / Digits (Twitter). The initial purpose is server-side validating Fabric tokens obtained from mobile client.

Client has to send clientToken &amp; clientTokenSecret for backend to validate them.

Backend needs to know Consumer Key&amp;Secret for HMAC signing of oAuth request to [api.digits.com](https://api.digits.com/1.1/sdk/account.json)

Uses ZendFramework 1 Zend Oauth Client parts.

#### Requirements

[](#requirements)

- ZendFramework 1 [library](https://github.com/zendframework/zf1) for Zend\_Oauth\_Client
- PHP 5.3.0 [namespaces](http://php.net/manual/en/language.namespaces.rationale.php)
- [Fabric account](http://fabric.io) for CONSUMER KEY (API KEY), CONSUMER SECRET (API SECRET)

#### Basic Usage (token server-side validation)

[](#basic-usage-token-server-side-validation)

```

$account = new \Digitsoauth\Account($accessToken,
                                    $accessTokenSecret,
                                    $consumerKey,
                                    $consumerSecret);

#calls https://api.digits.com/1.1/sdk/account.json to verify $accessToken
#returns user data (success)
#or Zend_Http_Response (error)
$result = $account->verifyCredentials();

if ($result instanceof \Zend_Http_Response) {
    #process errors (network, credentials, ...)
    echo (string) $result;
} else {
    #got the response array with digits identifier & phone number
    $digitsId    = $result['id_str'];
    $digitsPhone = $result['phone_number'];
}

```

#### References

[](#references)

1.
2. [fabric.io](https://docs.fabric.io)
3. [dev.twitter.com](https://dev.twitter.com/oauth/overview/authorizing-requests)
4.
5.
6.
7.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3807d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74fb0579a62a4158388bcf5a61a76922c7a3e7776217ea5fc33a87790011b17e?d=identicon)[sshilko](/maintainers/sshilko)

---

Top Contributors

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

---

Tags

sdkverifyoauthtwittercredentialsdigitsfabricverifyCredentialsapi.digits.com

### Embed Badge

![Health badge](/badges/sshilko-digitsoauth/health.svg)

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

###  Alternatives

[opauth/opauth

Multi-provider authentication framework for PHP

1.6k783.4k58](/packages/opauth-opauth)[themattharris/tmhoauth

An OAuth library written in PHP by @themattharris

8512.3M32](/packages/themattharris-tmhoauth)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50118.7k41](/packages/fof-oauth)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)[lorenzoferrarajr/lfj-opauth

LfjOpauth is a Zend Framework 2 module that enables support for many authentication providers through the Opauth framework.

2915.4k](/packages/lorenzoferrarajr-lfj-opauth)

PHPackages © 2026

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