2017 © Pedro Peláez
 

library xenforobridge

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

image

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

  • Saturday, December 9, 2017
  • by gabarba
  • Repository
  • 7 Watchers
  • 18 Stars
  • 4,457 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 4 Open issues
  • 9 Versions
  • 9 % Grown

The README.md

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., (*1)

If you would like to see this package in action we are currently using for AstronomyConnect.com - ItemHub Database. 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., (*2)

Installation

Install the XenforoBridge package with Composer by adding the folowing to your composer.json file., (*3)

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

Or by using the composer require command, (*4)

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:, (*5)

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

Then publish the config file with, (*6)

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., (*7)

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, (*8)

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

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., (*9)

Here is an example adding to the routeMiddleware array, (*10)

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, (*11)

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

or you can use them in your controllers themselves, (*12)

class SampleController extends Controller {


    function __construct()
    {

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

}

For more information on Middleware development an installation check out Laravel Docs - Middleware, (*13)

Credits

Special thanks to VinceG, the idea and much of my work is based on his package xenforo-sdk which was previously integrated within an ongoing project., (*14)

The Versions

09/12 2017

dev-master

9999999-dev

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

  Sources   Download

The Requires

  • php >=5.5.0

 

laravel laravel5 forum xenforo xenforo forum

10/08 2016

dev-default_template_rendering_fix

dev-default_template_rendering_fix

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

  Sources   Download

The Requires

  • php >=5.5.0

 

laravel laravel5 forum xenforo xenforo forum

10/08 2016

dev-laravel_5.1_branch

dev-laravel_5.1_branch

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

  Sources   Download

The Requires

  • php >=5.5.0

 

laravel laravel5 forum xenforo xenforo forum

10/08 2016

v0.2.1

0.2.1.0

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

  Sources   Download

The Requires

  • php >=5.5.0

 

laravel laravel5 forum xenforo xenforo forum

19/08 2015

dev-development

dev-development

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

  Sources   Download

The Requires

  • php >=5.5.0

 

laravel laravel5 forum xenforo xenforo forum

19/08 2015

v0.2.0

0.2.0.0

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

  Sources   Download

The Requires

  • php >=5.5.0

 

laravel laravel5 forum xenforo xenforo forum

17/08 2015

dev-template_render_refactor

dev-template_render_refactor

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

  Sources   Download

The Requires

  • php >=5.3.0

 

laravel laravel4 forum xenforo xenforo forum

08/02 2015

dev-laravel_5_upgrade

dev-laravel_5_upgrade

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

  Sources   Download

The Requires

  • php >=5.3.0

 

laravel laravel4 forum xenforo xenforo forum

17/09 2014

v0.1.0

0.1.0.0

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

  Sources   Download

The Requires

  • php >=5.3.0

 

laravel laravel4 forum xenforo xenforo forum