Download the PHP package pperon/vbauth without Composer

On this page you can find all versions of the php package pperon/vbauth. 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 vbauth

Authentication for VBulletin users in Laravel 4. Tested with VBulletin 4.x.

Installation

Add pperon/vbauth as a requirement to composer.json:

Update your packages with composer update or install with composer install.

Once Composer has installed or updated your packages you need to register Vbauth with Laravel itself. Open app/config/app.php and find the providers key towards the bottom and add:

In order to use shorter class alias add it to alias sections in app/config/app.php:

Configuration

Default configuration file is located in vendor/pperon/vbauth/src/config/config.php but you should overwrite it with app/config/packages/pperon/vbauth/config.php file.

Usage

Example usage in a controller:

Vbulletin User Variables

You may access user information directly by calling Vbauth::get('fieldname'). Fields are defined in config.php (select_columns).

Example:

isLoggedIn()

Checks for VBulletin user cookie and returns:

TRUE - user is logged in, FALSE - there is no vbulletin cookie (user not logged in)

isAdmin()

Checks whether the user belongs to Admin usergroup. Usually this means the user belongs to usergroup with id = 6 but you can modify this in config.php file by changing admin group ids.

TRUE - user belongs to admin usergroup FALSE - user doesn't belong to admin usergroup

is()

Checks whether the user belongs to specific usergroup. Default available groups: admin, moderator, user, banned, guest. You can add more in config.php.

TRUE - user belongs to specific group

Example:

logoutUrl()

Returns URL to logout script in Vbulletin installation.

Example:

getUserInfo()

Returns user data for any choosen forum user

Example:

Change Log

v1.1.2

Added support for separate database connection (when vbulletin forum database is located in different database than laravel):

Set the connection in app/config/database.php and add the connection name to config/packages/pperon/vbauth/config.php:

v1.0.7

Added getUserInfo() method which returns user information for any forum user

Example:


All versions of vbauth with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.0.*
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 pperon/vbauth contains the following files

Loading the files please wait ....