PHPackages                             robbevw/pseudo - 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. robbevw/pseudo

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

robbevw/pseudo
==============

Guest user library for Laravel

v1.0.0-alpha.1(9y ago)018MITPHPPHP 7.\*

Since Nov 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/RobbeVW/pseudo)[ Packagist](https://packagist.org/packages/robbevw/pseudo)[ RSS](/packages/robbevw-pseudo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

pseudo
======

[](#pseudo)

Guest user library for Laravel

Description
-----------

[](#description)

pseudo adds the ability for guests permissions within Laravel's authentication functionality.

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

[](#installation)

##### Include through composer

[](#include-through-composer)

`composer require agilesdesign/pseudo`

##### Add to provider list

[](#add-to-provider-list)

```
'providers' => [
    Pseudo\Providers\PseudoServiceProvider::class,
];
```

Overview
--------

[](#overview)

Comparison to default Laravel behavior

```
Auth::check() // true if User false if Pseudo/Contracts/GuestContract
```

```
Auth::user() // returns instance of Pseudo/Contracts/GuestContract instead of null if no user found
```

```
@can() // no longer automatically fails if not authenticated, allows Gate to be checked
```

Usage
-----

[](#usage)

The only configuration this library requires out of the box is updating the `driver` in your auth guard (config/auth.php) to `pseudo`.

An instance of `Pseudo\Auth\Guest` is resolved from Laravel's Service Container when `Pseudo/Contracts/GuestContract` is requested.

This binding is registered in the supplied ServiceProvider:

```
public function register()
{
    $this->app->bind(GuestContract::class, Guest::class);
}
```

You may override this by providing your own `GuestUser` class that implements `Pseudo/Contracts/GuestContract` and rebinding the interface:

```
class GuestUser extends User implements GuestContract
{

    //Here you amy overload anything to be specific to your guest user
    public function getNameAttribute(){
        return 'Guest User';
    }
}
```

```
this->app->bind(\Pseudo\Contracts\GuestContract::class, \App\GuestUser::class);
```

Policy checks can still be type-hinted for Laravel's `App\User` since `Pseudo\Auth\Guest` extends it.

##### Example

[](#example)

```
Gate::define('create-article', function ($user, $article) {
    if($user instanceof Pseudo\Auth\Guest)
    {
      // logic for guest
    }
    else
    {
      // logic for authenticated
    }
});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8929c71f17a860d42ab85c09fb80a6c715664c2e7d85c36e3fb3337070d1d059?d=identicon)[glowdemon1](/maintainers/glowdemon1)

---

Top Contributors

[![jrseliga](https://avatars.githubusercontent.com/u/3277067?v=4)](https://github.com/jrseliga "jrseliga (4 commits)")[![hailwood](https://avatars.githubusercontent.com/u/709773?v=4)](https://github.com/hailwood "hailwood (1 commits)")

### Embed Badge

![Health badge](/badges/robbevw-pseudo/health.svg)

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

###  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)
