PHPackages                             oguzcandemircan/laravel-guest - 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. oguzcandemircan/laravel-guest

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

oguzcandemircan/laravel-guest
=============================

:description

v0.2.0(7y ago)021MITPHP

Since Feb 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/oguzcandemircan/laravel-guest)[ Packagist](https://packagist.org/packages/oguzcandemircan/laravel-guest)[ Docs](https://github.com/oguzcandemircan/laravelguest)[ RSS](/packages/oguzcandemircan-laravel-guest/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Laravel Guest
=============

[](#laravel-guest)

[![Latest Version on Packagist](https://camo.githubusercontent.com/46dfbcab783f89d0d85812894475236e7e3f6935be7e31753ce00646731b6df3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f67757a63616e64656d697263616e2f6c61726176656c2d67756573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oguzcandemircan/laravel-guest)[![Total Downloads](https://camo.githubusercontent.com/f2afcec436519514d9d76b9dc59c754bfdb0851f3a8dc42d396723d008e3ad9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f67757a63616e64656d697263616e2f6c61726176656c2d67756573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oguzcandemircan/laravel-guest)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require oguzcandemircan/laravel-guest
```

Usage
-----

[](#usage)

Your models should use the LaravelGuestTrait trait.

```
use OguzcanDemircan\LaravelGuest\LaravelGuestTrait;

class User extends Authenticatable
{
  use LaravelGuestTrait
}
```

Via helper functions

```
user()->isGuest();
```

Via facades

```
$user = LaravelGuest::make();
$user->isGuest();
```

Via Laravel resolve helper function

```
$user = resolve('laravelguest')->make();
$user->isMember();
```

Service Container

```
$user = $this->app->resolving('laravelguest')->make();
$user->name;
```

Helper Functions
----------------

[](#helper-functions)

```
if(is_member()) {
 #...
}
if(is_guest()) {
#...
}

user_id()
#..
```

Available Methods
-----------------

[](#available-methods)

ResourceMethodTypeOguzcanDemircan\\LaravelGuest\\LaravelGuestisGuestBooleanOguzcanDemircan\\LaravelGuest\\LaravelGuestisMemberBooleanOguzcanDemircan\\LaravelGuest\\Helpers\\Functions.phpis\_guest()BooleanOguzcanDemircan\\LaravelGuest\\Helpers\\Functions.phpis\_member()BooleanOguzcanDemircan\\LaravelGuest\\Helpers\\Functions.phpuser\_id()IntegerChange log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Oğuzcan Demircan](https://github.com/oguzcandemircan)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~48 days

Total

3

Last Release

2558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56b08cd434ba1a561f39af9a63e6acaa40d9795a578d61e5e18f3aa2ab44ed1c?d=identicon)[oguzcan](/maintainers/oguzcan)

---

Top Contributors

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

---

Tags

laravelLaravelGuest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oguzcandemircan-laravel-guest/health.svg)

```
[![Health](https://phpackages.com/badges/oguzcandemircan-laravel-guest/health.svg)](https://phpackages.com/packages/oguzcandemircan-laravel-guest)
```

###  Alternatives

[imdhemy/laravel-purchases

The top-notch Laravel receipt validator.

3831.1M2](/packages/imdhemy-laravel-purchases)[martbock/laravel-diceware

Diceware Passphrase Generator for Laravel

3264.7k](/packages/martbock-laravel-diceware)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)

PHPackages © 2026

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