PHPackages                             pperon/vbauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. pperon/vbauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

pperon/vbauth
=============

Vbulletin auth library for Laravel 4 (Illuminate)

v1.1.3(12y ago)91278[1 issues](https://github.com/przemekperon/laravel-vbauth/issues)MITPHPPHP &gt;=5.3.0

Since Feb 8Pushed 6y ago3 watchersCompare

[ Source](https://github.com/przemekperon/laravel-vbauth)[ Packagist](https://packagist.org/packages/pperon/vbauth)[ Docs](https://github.com/przemyslawperon/laravel-vbauth)[ RSS](/packages/pperon-vbauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

Authentication for [VBulletin](http://www.vbulletin.com) users in [Laravel 4](http://laravel.com/). Tested with VBulletin 4.x.

Installation
============

[](#installation)

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

```
{
    "require": {
        "pperon/vbauth": "1.*"
    }
}
```

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:

```
'providers' => array(
		...
		...
		'Pperon\Vbauth\VbauthServiceProvider',
),
```

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

```
'aliases' => array(
		...
		...
		'Vbauth'		  => 'Pperon\Vbauth\Facades\Vbauth',
),
```

Configuration
=============

[](#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
=====

[](#usage)

Example usage in a controller:

```
if(Vbauth::isAdmin()){
	// Show administrator page
	View::make('admin.index');
} elseif (Vbauth::isLoggedin()) {
	// Show user page
	View::make('user.index');
} else {
	// Show guest page
	View::make('guest.index');
}
```

\###Vbulletin User Variables

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

Example:

```
if(Vbauth::isLoggedin()) {
    $user_id  = Vbauth::get('userid');
    $username = Vbauth::get('username');
    $email    = Vbauth::get('email');
}
```

\###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:

```
if(Vbauth::is('moderator')) {
    View::make('moderator.panel');
}
```

\###logoutUrl()

Returns URL to logout script in Vbulletin installation.

Example:

```
Redirect::to(Vbauth::logoutURL());
```

\###getUserInfo()

Returns user data for any choosen forum user

Example:

```
$user_id = 8;
$user = Vbauth::getUserInfo($user_id);
echo $user['email']; // displays email for user with user_id = 8
echo $user['username']; // show username
```

Change Log
==========

[](#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:

```
  'db_connection' => 'vbconn', // vbconn is the connection name in database.php
```

\###v1.0.7

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

Example:

```
$user_id = 8;
$user = Vbauth::getUserInfo($user_id);
echo $user['email']; // displays email for user with user_id = 8
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 94.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~64 days

Total

13

Last Release

4556d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7879d270e09d1643ef5d760a4bdcdaafc173cf0d5ed7dcf1be3d1bc78337a352?d=identicon)[przemekperon](/maintainers/przemekperon)

---

Top Contributors

[![przemekperon](https://avatars.githubusercontent.com/u/169778?v=4)](https://github.com/przemekperon "przemekperon (37 commits)")[![rmobis](https://avatars.githubusercontent.com/u/2119933?v=4)](https://github.com/rmobis "rmobis (2 commits)")

---

Tags

laravelilluminatevbulletinvb

### Embed Badge

![Health badge](/badges/pperon-vbauth/health.svg)

```
[![Health](https://phpackages.com/badges/pperon-vbauth/health.svg)](https://phpackages.com/packages/pperon-vbauth)
```

###  Alternatives

[acoustep/entrust-gui

A GUI for the Entrust package.

11425.7k](/packages/acoustep-entrust-gui)[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

1596.6k](/packages/codebot-entrust)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
