PHPackages                             droidwiki/xenforo-bd-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. droidwiki/xenforo-bd-client

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

droidwiki/xenforo-bd-client
===========================

A consumer for the XenForo bd Api plugin.

0.1.1(9y ago)14.2k—10%1MITPHP

Since Oct 2Pushed 9y agoCompare

[ Source](https://github.com/droidwiki/xenforo-bd-client)[ Packagist](https://packagist.org/packages/droidwiki/xenforo-bd-client)[ RSS](/packages/droidwiki-xenforo-bd-client/feed)WikiDiscussions master Synced 1mo ago

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

XenForo bd PHP Client
=====================

[](#xenforo-bd-php-client)

This library allows to use the public api endpoint of XenForo ([XenForo \[bd\] Api](https://xenforo.com/community/resources/bd-api.1732/)).

Usage
-----

[](#usage)

To authenticate an user using the OAuth2 protocol, you can use the following example. You need to create an API client at the target XenForo installation at .

```
$client = new \XenForoBDClient\Clients\OAuth2Client();
$client->setBaseUrl( 'https://example.com/api/' )
	->setClientId( 'client_id' )
	->setClientSecret( 'client_secret' )
	->setRedirectUri( 'https://example2.com/redirect_target.php' )
	// see \XenForoBD\Scopes for all possible scopes
	->addScope( \XenForoBD\Scopes::READ );
if ( $_GET[ 'code' ] ) {
	$client->authenticate( $_GET['code'] );
	$user = new \XenForoBDClient\Users\User( $client );
	// will print the whole information array of the authenticated user
	var_dump($user->get( 'me' ));
} else {
	// redirect to the authentication url
	header( 'Location: ' . $client->getAuthenticationRequestUrl() );
}
```

To request information about an user using the user id, without needing to authenticate before doing it (e.g. using OAuth2), you can use the following example code:

```
$client = new \XenForoBDClient\Clients\UnauthenticatedClient();
$client->setBaseUrl( 'http://www.android-hilfe.de/api/' );
$user = new \XenForoBDClient\Users\User( $client );
// the user id in XenForo would be 102719
var_dump( $user->get( 102719 ) );
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

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

Total

2

Last Release

3287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e7b3983dc1f8e0d31e2ac156f4bccae0a659c363c200e3b507fd9d22cd5fbc9?d=identicon)[FlorianSW](/maintainers/FlorianSW)

---

Top Contributors

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

---

Tags

oauthxenforo

### Embed Badge

![Health badge](/badges/droidwiki-xenforo-bd-client/health.svg)

```
[![Health](https://phpackages.com/badges/droidwiki-xenforo-bd-client/health.svg)](https://phpackages.com/packages/droidwiki-xenforo-bd-client)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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