Download the PHP package eld/bridgevb without Composer

On this page you can find all versions of the php package eld/bridgevb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bridgevb

vBulletin 4 bridge for Laravel 4

This is a Laravel Composer package providing a method to authenticate against a vBulletin 4.x database to allow for Laravel 4 sites to be built beside a vBulletin forum without requiring users to create new accounts.

This package is based off of the pperon/vbauth package and the vb_auth package for CodeIgnitor.

Add eld/bridgevb as a requirement in composer.json:

Run composer update to update your packages or composer install if you haven't already run the command

To use the package, add this line to your providers array contained in the app/config/app.php file:

In order to use the facade, add the following to your aliases array in app/config/app.php:

Configuration File:

The default configuration file is found in vender/eld/bridgevb/src/config/config.php but you should overwrite it with a app/config/packages/eld/bridgevb/config.php file.

The configuration file looks like:

You need to replace the following fields in the existing config file or the config file in app/config/packages/eld/bridgevb/config.php file to suit your setup: connection, cookie_hash, cookie_prefix, db_prefix, db_prefix, forum_path, and add your forum's user groups in the user_groups portion and customize which user info you'd like to fetch with the user_columns option.

Exampe Usage:

This is what a filter could look like in app/filters.php if you were to authenticate users on every page they loaded.

If you wanted to log in users externally from the vBulletin site, here's an snippet of how you'd do it:

The following are functions included in the library:

Examples of usage are included in each description of the method

is()

The is() function takes in a string parameter an returns whether the user is a member of that user group.

attempt()

The attempt method takes in an array of credentials and returns true if the authentication attempt was successful and returns false if the credentials were incorrect.

isLoggedIn()

The isLoggedIn() function checks to authenticate the current user and retursn a non-zero value if the user is currently authenticated.

getUserInfo()

The getUserInfo() function returns a stdClass object representing the user data retrieved from the vBulletin user table as specified in the configuration file.

get()

The get method takes in a string and returns the particular piece of information about the user that's passed in.

getLogoutHash()

This function returns the logout hash for the user logged in that allows for you to link to vBulletin's logout function with teh proper logout hash.

logout()

Logs the user out manually instead of routing through vBulletin's logout function.

Changelog

6/1/2013 (v1.0) - Initial Release
6/2/2013 (v1.0.1) - Revised code to be PSR-2 compliant
6/3/2013 (v1.1) - Patched bug causing multiple rows to be added to the database when the session was being authenticated
6/3/2013 (v1.1.1) - Fixed session creation bugs


All versions of bridgevb with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.0.x
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eld/bridgevb contains the following files

Loading the files please wait ....