PHPackages                             lamarus/stormpath - 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. lamarus/stormpath

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

lamarus/stormpath
=================

A drop in replacement for Laravel 4 Auth Driver.

516[1 issues](https://github.com/bretterer/stormpath-auth/issues)PHP

Since Oct 1Pushed 12y ago1 watchersCompare

[ Source](https://github.com/bretterer/stormpath-auth)[ Packagist](https://packagist.org/packages/lamarus/stormpath)[ RSS](/packages/lamarus-stormpath/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Stormpath drop in replacement for Laravel 4 Auth
================================================

[](#stormpath-drop-in-replacement-for-laravel-4-auth)

This is a provider for adding a stormpath driver to your auth system for laravel 4.
[![endorse](https://camo.githubusercontent.com/f45c125b12d6764cea46c2d52fb2f3d3326c1334a4769e27e6bd7b14465f5623/68747470733a2f2f6170692e636f64657277616c6c2e636f6d2f6272657474657265722f656e646f727365636f756e742e706e67)](https://coderwall.com/bretterer)

What is Stormpath?
------------------

[](#what-is-stormpath)

[![logo](https://camo.githubusercontent.com/5188a818e7307ff937de5df72d26e2bf3c7f7323248ae0b4cdc5e8da69f39a21/687474703a2f2f7777312e70727765622e636f6d2f707266696c65732f323031322f30332f31362f393535353837382f73746f726d706174685f76315f656469746564435248322e6a7067)](https://camo.githubusercontent.com/5188a818e7307ff937de5df72d26e2bf3c7f7323248ae0b4cdc5e8da69f39a21/687474703a2f2f7777312e70727765622e636f6d2f707266696c65732f323031322f30332f31362f393535353837382f73746f726d706174685f76315f656469746564435248322e6a7067)

Stormpath is the first easy and secure user management and authentication service for developers. With a simple REST API integration, developers can reduce development and operations costs, while protecting users with best-in-class security.

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `lamarus/stormpath`.

```
"require": {
	"laravel/framework": "4.0.*",
	"lamarus/stormpath": "dev-master"
},
"minimum-stability" : "dev"

```

Next, update Composer from the Terminal:

```
composer update

```

After the command completes, Run the following command

```
php artisan config:publish lamarus/stormpath

```

Then, go to `app/config/packages/lamarus/stormpath/config.php` and put in your `id`, `secret`, and your `applicationId`.

Once you have added your configuration, add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Lamarus\Stormpath\StormpathServiceProvider'

```

The final step is to change your auth driver. Open `app/config/auth.php`, and change the driver to `stormpath`

Usage
-----

[](#usage)

This driver replacement has been created to make it easy to replace the current auth. All the commands are the same and are used just like the current way.

### Examples

[](#examples)

```
Route::get('attempt', function() {
	$user = Auth::attempt(array('username' => 'test', 'password' => '1234Abcd'));
});

Route::get('check',function() {
	Auth::check();
});

Route::get('loginUsingId',function() {
	$user = 'xXxXxXxX'; // the id from stormpath for the user
	Auth::loginUsingId($user);
});

Route::get('once', function() {
	Auth::once(array('username' => 'test', 'password' => '1234Abcd'));
});

Route::get('login', function() {
	$user = new \Lamarus\Stormpath\StormpathUser('https://api.stormpath.com/v1/accounts/xXxXxXxX');
	Auth::login($user);
});

Route::get('logout', function() {
	Auth::logout();
});

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1d1ced324a1671b1814017525fde4873faa1d7c5c29c4fd766e77bf376b6aff?d=identicon)[bretterer](/maintainers/bretterer)

---

Top Contributors

[![bretterer](https://avatars.githubusercontent.com/u/1906920?v=4)](https://github.com/bretterer "bretterer (7 commits)")

### Embed Badge

![Health badge](/badges/lamarus-stormpath/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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