PHP code example of youkoulayley / laravel-phpbb-bridge

1. Go to this page and download the library: Download youkoulayley/laravel-phpbb-bridge library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

youkoulayley / laravel-phpbb-bridge example snippets

 php
composer 
 php
'providers' => array(
    Youkoulayley\LaravelPhpbbBridge\LaravelPhpbbBridgeServiceProvider::class,
);
 php
artisan vendor:publish --provider="Youkoulayley\LaravelPhpbbBridge\LaravelPhpbbBridgeServiceProvider"
 php
protected $except = [
        	'auth-bridge/*',
    	];
 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