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 2w 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 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

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

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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