New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

callmenp/lara-auth-bridge

Offers a simple API for the included custom phpBB authentication module. for phpBB3.0 and laravel5
1,199 16
Install
composer require callmenp/lara-auth-bridge
Latest Version:v2.1.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Feb 4, 2021
Links: GitHub  ·  Packagist
Maintainer: CallMeNP

This package is unmaintained.

I do not intend to continue development on this project due to changing priorities at my day job. I'll keep the repo up in case it is still useful to anyone.

Thanks @Bukashk0zzz

Allows phpBB (3.0 & 3.1) auth over Laravel 5

For Laravel 4.* see r-a-stone's work Auth driver to create/authenticate accounts.

Latest Stable Version Total Downloads License

Installation

Laravel
run composer
composer require callmenp/lara-auth-bridge
add service provider

Register the Service Provider by adding it to your project's providers array in app.php

'providers' => array(
    'CallMeNP\LaraAuthBridge\LaraAuthBridgeServiceProvider',
);
edit config

Change configs config/lara-auth-bridge.php

// Create a secret app key in 
'appkey' => 'yoursecretapikey'

// Update the column names used for the Laravel Auth driver 
'username_column' => 'user_login',
'password_column' => 'user_password'

// Set true if you use multiAuth, false if default Laravel Auth
'client_auth' => false
exclude URIs from CSRF protection

In file app/Http/Middleware/VerifyCsrfToken.php add

protected $except = [
        	'auth-bridge/*',
    	];

More info how to exclude uris on laravel site

phpBB 3.1
copy files

Copy all files in the phpBB 3.1 directory to your phpBB install

edit config

Edit the file located at {PHPBB-ROOT}/ext/laravel/bridgebb/auth/provider/bridgebb.php

define('LARAVEL_URL', 'http://www.example.com'); //your laravel application's url
define('BRIDGEBB_API_KEY', "yoursecretapikey"); //the same key you created earlier
define ('LARAVEL_CUSTOM_USER_DATA', serialize ([
    'email' => 'user_email',
    'dob' => 'user_birthday',
])); // Update the columns you want to come from Laravel user to phpBB user
setting

Login to the phpBB admin panel enable bridgebb extension and after set bridgebb as the authentication module

Related Packages

hmazter/laravel-log-queue

Laravel 5+ package to push Queued jobs to the log

12,516 5
devfactory/minify

A package for minifying styles and javascript for laravel 5

409,221 82
ajtarragona/tsystems-client

Client per serveis de l'ERP de Tsystems (Tercers, Padró, Vialer)

1,061 0
ricardosierra/minify

A package for minifying styles and javascript for laravel 5

1,003 1
lancewan/laravel5-cloud

荣联云通讯接口 for laravel5

912 11

Version History

Version Released PHP Laravel License
v2.1.0 >=5.4.0 5.* MIT
v2.0.1 >=5.4.0 5.* MIT
v2.0.0 >=5.4.0 5.* MIT
v1.0.0 >=5.4.0 5.* MIT