PHPackages                             urb/xenforobridge - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. urb/xenforobridge

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

urb/xenforobridge
=================

Xenforo Bridge - Easy to use extendable bridge to use outside of your XenForo application all contained within a simple to use composer package

v0.2.1(9y ago)265.7k9[6 issues](https://github.com/UnderRatedBrilliance/XenforoBridge/issues)PHPPHP &gt;=5.5.0

Since Sep 17Pushed 8y ago9 watchersCompare

[ Source](https://github.com/UnderRatedBrilliance/XenforoBridge)[ Packagist](https://packagist.org/packages/urb/xenforobridge)[ RSS](/packages/urb-xenforobridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (9)Used By (0)

XenforoBridge
=============

[](#xenforobridge)

Simple to use XenForo bridge library. The goal of this package is to allow developer to easily integrate their existing/new application with XenForo Forum Platfrom. This package is still heavily underdevelopment so use with caution. I have also included a ServiceProvider to use within a Laravel application.

If you would like to see this package in action we are currently using for [AstronomyConnect.com - ItemHub Database](http://astronomyconnect.com/items). This is a Laravel 5 app with Xenforo sitting within the public folder. Templates have been designed and implemented in Xenforo and are being rendered by this bridge instead of using Blade.

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

[](#installation)

Install the XenforoBridge package with Composer by adding the folowing to your composer.json file.

```
{
    "require": {
        "urb/xenforobridge": "dev-master"
    }
}
```

Or by using the composer require command

```
composer require urb/xenforobridge:dev-master

```

To install XenforoBridge into Laravel 5 simple add the following service provider to your 'config/app.php' in the 'providers' array:

```
'providers' => array(
		'Urb\XenforoBridge\XenforoBridgeServiceProvider::class',
)
```

Then publish the config file with

```
php artisan vendor:publish

```

This will add the file 'config/xenforobridge.php'. This is where you will place the needed configurations to use the Xenforo Bridge.

Within this config file you will need to supply the full directory path to your XenForo installation and the base url path like the example below

```
return array(
		'xenforo_directory_path' => '/var/www/html/public/forums',
		'xenforo_base_url_path'  => '//example.com/forums/', //Default '/'
	);
```

Installing Middleware
---------------------

[](#installing-middleware)

To install Middleware you wil need to open up the app\\Http\\Kernel.php and the following middleware to either global middleware array or the routeMiddleware array.

Here is an example adding to the routeMiddleware array

```
protected $routeMiddleware = [
		'xen.auth' => 'Urb\XenforoBridge\Middleware\XenAuthMiddleware',
		'xen.auth.admin' => 'Urb\XenforoBridge\Middleware\XenAuthAdminMiddleware',
	];
```

You can then use them in your routes like so

```
Route::get('/example', ['middleware' => 'xen.auth',function(){
	//Do stuff
}]);
```

or you can use them in your controllers themselves

```
class SampleController extends Controller {

    function __construct()
    {

        $this->middleware('xen.auth');
    }

}
```

For more information on Middleware development an installation check out [Laravel Docs - Middleware](http://laravel.com/docs/5.1/middleware)

Credits
-------

[](#credits)

Special thanks to [VinceG](https://github.com/VinceG), the idea and much of my work is based on his package [xenforo-sdk](https://github.com/VinceG/xenforo-sdk) which was previously integrated within an ongoing project.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

3560d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.0

v0.2.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/50b420d9d4fa02af8f164361735bafc02601f0b483d75c51805761ca853069f9?d=identicon)[gabarba](/maintainers/gabarba)

---

Top Contributors

[![gabarba](https://avatars.githubusercontent.com/u/3189038?v=4)](https://github.com/gabarba "gabarba (46 commits)")

---

Tags

laravellaravel5forumxenforoxenforo forum

### Embed Badge

![Health badge](/badges/urb-xenforobridge/health.svg)

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

###  Alternatives

[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[summerblue/generator

Extend Laravel's generators scaffold.

34139.9k](/packages/summerblue-generator)[fresns/fresns

Cross-platform general-purpose multiple content forms social network service software.

4841.5k](/packages/fresns-fresns)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)

PHPackages © 2026

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