PHPackages                             graham-campbell/credentials - 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. [Framework](/categories/framework)
4. /
5. graham-campbell/credentials

AbandonedArchivedLibrary[Framework](/categories/framework)

graham-campbell/credentials
===========================

Credentials Is A Cool Way To Authenticate In Laravel 5

0.3.x-dev(11y ago)5421.2k14[2 issues](https://github.com/BootstrapCMS/Credentials/issues)2MITPHPPHP &gt;=5.4.7

Since Feb 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/BootstrapCMS/Credentials)[ Packagist](https://packagist.org/packages/graham-campbell/credentials)[ RSS](/packages/graham-campbell-credentials/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (18)Versions (11)Used By (2)

Laravel Credentials
===================

[](#laravel-credentials)

Laravel Credentials was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a cool way to authenticate in [Laravel 5](http://laravel.com). It utilises many of my packages and Cartalyst's [Sentry](https://github.com/BootstrapCMS/Sentry) package. Feel free to check out the [releases](https://github.com/BootstrapCMS/Credentials/releases), [license](LICENSE), and [contribution guidelines](CONTRIBUTING.md).

[![Laravel Credentials](https://cloud.githubusercontent.com/assets/2829600/4432313/c1664f5c-468c-11e4-8469-c6874c21aede.PNG)](https://cloud.githubusercontent.com/assets/2829600/4432313/c1664f5c-468c-11e4-8469-c6874c21aede.PNG)

[![Build Status](https://camo.githubusercontent.com/28b68e3b0a9cc011c33710bb1ab29af19a2a4fe66c49fa324b8aaeaf1384f7ff/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426f6f747374726170434d532f43726564656e7469616c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BootstrapCMS/Credentials)[![Coverage Status](https://camo.githubusercontent.com/f2d11ae9e68ab6619b55bb9f218ddcfaaf3b37bc3b59762d4c386a39fcc9883d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f426f6f747374726170434d532f43726564656e7469616c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BootstrapCMS/Credentials/code-structure)[![Quality Score](https://camo.githubusercontent.com/6ded99352ef1c44ff5c0dcb23eaa7a698a71a2d5cbb4cedf108a014ee7cf3585/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f426f6f747374726170434d532f43726564656e7469616c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BootstrapCMS/Credentials)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/f2ecec274988bd99f18ffa63371a71a68b5b2558ad5b34c611e6bd59f9d6b3c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f426f6f747374726170434d532f43726564656e7469616c732e7376673f7374796c653d666c61742d737175617265)](https://github.com/BootstrapCMS/Credentials/releases)

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

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.6+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Credentials, simply add the following line to the require block of your `composer.json` file:

```
"graham-campbell/credentials": "~1.0"

```

You'll also need to make sure our fork of Sentry is included in your repositories list:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/BootstrapCMS/Sentry"
        }
    ],
}
```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

You will need to register many service providers before you attempt to load the Laravel Credentials service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'McCool\LaravelAutoPresenter\LaravelAutoPresenterServiceProvider'`
- `'Cartalyst\Sentry\SentryServiceProvider'`
- `'GrahamCampbell\Security\SecurityServiceProvider'`
- `'GrahamCampbell\Binput\BinputServiceProvider'`
- `'GrahamCampbell\Throttle\ThrottleServiceProvider'`

Once Laravel Credentials is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'GrahamCampbell\Credentials\CredentialsServiceProvider'`

You can register the three facades in the `aliases` key of your `config/app.php` file if you like.

- `'UserProvider' => 'GrahamCampbell\Credentials\Facades\UserProvider'`
- `'GroupProvider' => 'GrahamCampbell\Credentials\Facades\GroupProvider'`
- `'Credentials' => 'GrahamCampbell\Credentials\Facades\Credentials'`

Configuration
-------------

[](#configuration)

Laravel Credentials supports optional configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/credentials.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are a few config options:

##### Enable Public Registration

[](#enable-public-registration)

This option (`'regallowed'`) defines if public registration is allowed. The default value for this setting is `true`.

##### Require Account Activation

[](#require-account-activation)

This option (`'activation'`) defines if public registration requires email activation. The default value for this setting is `true`.

##### Revision Model

[](#revision-model)

This option (`'revision'`) defines the revision model to be used. The default value for this setting is `'GrahamCampbell\Credentials\Models\Revision'`.

##### Home

[](#home)

This option (`'home'`) defines the location of the homepage. The default value for this setting is `'/'`.

##### Layout

[](#layout)

This option (`'layout'`) defines the layout to extend when building views. The default value for this setting is `'layouts.default'`.

##### Email Layout

[](#email-layout)

This option (`'layout'`) defines the layout to extend when building email views. The default value for this setting is `'layouts.email'`.

##### Additional Configuration

[](#additional-configuration)

You will need to add a `'name'` key to your app config to set the application name.

You may want to check out the config for `cartalyst/sentry` too. For Laravel Credentials to function correctly, you must set the models to the following, or to a class which extends the following:

- `'GrahamCampbell\Credentials\Models\Group'`
- `'GrahamCampbell\Credentials\Models\User'`
- `'GrahamCampbell\Credentials\Models\Throttle'`

Usage
-----

[](#usage)

There is currently no usage documentation for Laravel Credentials, but we are open to pull requests.

License
-------

[](#license)

Laravel Credentials is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.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 ~44 days

Recently: every ~37 days

Total

10

Last Release

4125d ago

PHP version history (2 changes)v0.1.0-alphaPHP &gt;=5.4.7

v0.4.0-alphaPHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (434 commits)")[![Drethic](https://avatars.githubusercontent.com/u/2099078?v=4)](https://github.com/Drethic "Drethic (1 commits)")[![edwinheij](https://avatars.githubusercontent.com/u/1799101?v=4)](https://github.com/edwinheij "edwinheij (1 commits)")[![lnoriega24](https://avatars.githubusercontent.com/u/69463040?v=4)](https://github.com/lnoriega24 "lnoriega24 (1 commits)")[![mrrsm](https://avatars.githubusercontent.com/u/1251354?v=4)](https://github.com/mrrsm "mrrsm (1 commits)")[![OmarMakled](https://avatars.githubusercontent.com/u/3720473?v=4)](https://github.com/OmarMakled "OmarMakled (1 commits)")

---

Tags

frameworklaravelsentryGraham CampbellGrahamCampbellpermissionsloginUserscredentialsLaravel-Credentials

### Embed Badge

![Health badge](/badges/graham-campbell-credentials/health.svg)

```
[![Health](https://phpackages.com/badges/graham-campbell-credentials/health.svg)](https://phpackages.com/packages/graham-campbell-credentials)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M124](/packages/laravel-pulse)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k28.4M137](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M125](/packages/laravel-mcp)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

267880.7k3](/packages/laravel-cashier-paddle)

PHPackages © 2026

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