PHPackages                             gponster/laravel-auth-file - 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. gponster/laravel-auth-file

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

gponster/laravel-auth-file
==========================

File-based auth driver

v1.0(11y ago)227MITPHPPHP &gt;=5.4.0

Since Jan 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/gponster/laravel-auth-file)[ Packagist](https://packagist.org/packages/gponster/laravel-auth-file)[ RSS](/packages/gponster-laravel-auth-file/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel File-Based DB Auth
==========================

[](#laravel-file-based-db-auth)

- **Laravel**: 4.2
- **Author**: Gponster

This package is not a replacement for laravels default Auth library, it's a simple auth driver using configuration file-based DB for username/password.

Installation
------------

[](#installation)

Firstly you want to include this package in your composer.json file.

```
"require": {
		"gponster/laravel-auth-file": "dev-master"
}

```

Now you'll want to update or install via composer.

```
composer update

```

Next you open up app/config/app.php and replace the AuthServiceProvider with

```
'Gonster\Auth\File\AuthServiceProvider',

```

**NOTE** It is very important that you replace the default service providers. If you do not wish to use Reminders, then remove the original Reminder server provider as it will cause errors.

Configuration is pretty easy too, take app/config/auth.php with its default values:

```
return array(

	'driver' => 'eloquent',

	'model' => 'User',

	'table' => 'users',

	'reminder' => array(

		'email' => 'emails.auth.reminder',

		'table' => 'password_reminders',

		'expire' => 60,

	),

);

```

and replace the auth driver to 'file'

```
'driver' => 'file',
'model' => 'AuthUser',
'username' => 'email',
'password' => 'password',

```

The simple AuthUser class

```
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
use Illuminate\Auth\GenericUser;

class AuthUser extends GenericUser implements UserInterface, RemindableInterface {

	public static $rules = array(
	   'email'=>'required|email',
	   'password'=>'required|alpha_num|between:6,12|confirmed',
   );

	/**
	 * Dynamically access the user's attributes.
	 *
	 * @param  string  $key
	 * @return mixed
	 */
	public function getAttribute($key)
	{
		return $this->__get($key);
	}

	/**
	 * Get the unique identifier for the user.
	 *
	 * @return mixed
	 */
	public function getAuthIdentifier()
	{
		return $this->attributes['email'];
	}

	/**
	 * Get the password for the user, needs to return the hashed password
	 *
	 * @return string
	 */
	public function getAuthPassword()
	{
		return $this->attributes['password'];
	}

	/**
	 * Get the e-mail address where password reminders are sent.
	 *
	 * @return string
	 */
	public function getReminderEmail()
	{
		return $this->attributes['email'];
	}
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73e98ec083d371aa676520ae5082802286bf074570a8c54debb8a1ea18c294ad?d=identicon)[gponster](/maintainers/gponster)

---

Tags

laravelauth

### Embed Badge

![Health badge](/badges/gponster-laravel-auth-file/health.svg)

```
[![Health](https://phpackages.com/badges/gponster-laravel-auth-file/health.svg)](https://phpackages.com/packages/gponster-laravel-auth-file)
```

###  Alternatives

[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)[cartalyst/sentinel

PHP 8.2+ Fully-featured Authentication &amp; Authorization System

1.5k2.7M80](/packages/cartalyst-sentinel)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[jurager/teams

Laravel package to manage team functionality and operate with user permissions.

23822.5k](/packages/jurager-teams)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[srlabs/centaur

An opinionated implementation of Cartalyst's Sentinel for Laravel 5

6058.3k](/packages/srlabs-centaur)

PHPackages © 2026

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