PHPackages                             ismailocal/sleep - 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. ismailocal/sleep

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

ismailocal/sleep
================

Laravel - Sleep your users

221PHP

Since Nov 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ismailocal/laravel-sleep)[ Packagist](https://packagist.org/packages/ismailocal/sleep)[ RSS](/packages/ismailocal-sleep/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-sleep
=============

[](#laravel-sleep)

You can sleep users easily.

### Installation

[](#installation)

```
composer require ismailocal/sleep

```

### Configuration

[](#configuration)

```
php artisan vendor:publish --provider="Ismailocal\Sleep\SleepServiceProvider"
```

then open "config/sleep.php" and replace "table" name with your sleepable table name.

### Sleepable Trait

[](#sleepable-trait)

```
use Ismailocal\Sleep\Traits\Sleepable;

class User extends Authenticatable{

  use Sleepable;
```

### Migration

[](#migration)

```
php artisan migrate
```

### Middleware

[](#middleware)

```
Route::middleware(['check.sleep'])->group(function () {
```

Throwing "UserSleepingException" when user sleeping!

### Usage

[](#usage)

```
$user->sleep(1, 'day');
or
$user->sleep(2, 'hours');

$user->save();
```

Check

```
$user->isSleeping(); // return boolean

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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/6b0eabbcc98c72d62890f0e26e01d4f3055e65613c33232e4969e6df6788c91f?d=identicon)[ismailocal](/maintainers/ismailocal)

---

Top Contributors

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

---

Tags

laravelsleepuser-sleep

### Embed Badge

![Health badge](/badges/ismailocal-sleep/health.svg)

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

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