PHPackages                             niladam/filament-auto-logout - 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. niladam/filament-auto-logout

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

niladam/filament-auto-logout
============================

A filament plugin that auto logs out your users if they are idle.

2.0.0(6mo ago)2223.5k—6%3[3 PRs](https://github.com/niladam/filament-auto-logout/pulls)MITPHPPHP ^8.2CI passing

Since Nov 26Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/niladam/filament-auto-logout)[ Packagist](https://packagist.org/packages/niladam/filament-auto-logout)[ Docs](https://github.com/niladam/filament-auto-logout)[ GitHub Sponsors](https://github.com/niladam)[ RSS](/packages/niladam-filament-auto-logout/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (12)Used By (0)

A filament plugin that auto logs out your users if they are idle. Works with multiple tabs.
===========================================================================================

[](#a-filament-plugin-that-auto-logs-out-your-users-if-they-are-idle-works-with-multiple-tabs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/319a11ff2309474db8fa09cd4c8bf93cd4c873d7fc2eb8f2f963bf25259cfa06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e696c6164616d2f66696c616d656e742d6175746f2d6c6f676f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/niladam/filament-auto-logout)[![Total Downloads](https://camo.githubusercontent.com/9ad8b664c77ddb3544671b214ad00d80ae4e126bd10025ecea34d574f3378841/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e696c6164616d2f66696c616d656e742d6175746f2d6c6f676f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/niladam/filament-auto-logout)

#### Compatibility

[](#compatibility)

Package VersionFilament Version[v1](https://github.com/niladam/filament-auto-logout/tree/1.x)[v3](https://filamentphp.com/docs/3.x/panels/installation)v2[v4](https://filamentphp.com/docs/4.x/introduction/overview)Installation
------------

[](#installation)

You can install the package via composer:

```
composer require niladam/filament-auto-logout
```

Install the package
-------------------

[](#install-the-package)

```
php artisan filament-auto-logout:install
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-auto-logout-config"
```

This is the contents of the published config file:

```
use Carbon\Carbon;
use Filament\View\PanelsRenderHook;

return [
    /**
     * Disable or enable the plugin
     */
    'enabled' => env('FILAMENT_AUTO_LOGOUT_ENABLED', true),

    /**
     * The duration in seconds your users can be idle before being logged out.
     *
     * The duration needs to be specified in seconds.
     *
     * A sensible default has been set to 15 minutes
     */
    'duration_in_seconds' => env('FILAMENT_AUTO_LOGOUT_DURATION_IN_SECONDS', Carbon::SECONDS_PER_MINUTE * 15),

    /**
     * A notification will be sent to the user before logging out.
     *
     * This sets the seconds BEFORE sending out the notification.
     */
    'warn_before_in_seconds' => env('FILAMENT_AUTO_LOGOUT_WARN_BEFORE_IN_SECONDS', 30),

    /**
     * The plugin comes with a small time left box which will display the time left
     * before the user will be logged out.
     */
    'show_time_left' => env('FILAMENT_AUTO_LOGOUT_SHOW_TIME_LEFT', true),

    /**
     * What should the time left box display before the timer?
     *
     * A default has been set to 'Time left:'
     */
    'time_left_text' => env('FILAMENT_AUTO_LOGOUT_TIME_LEFT_TEXT', 'Time left:'),

    /**
     * Where should the badge be rendered?
     *
     * @see https://filamentphp.com/docs/3.x/support/render-hooks#available-render-hooks for a list of supported hooks.
     */
    'location' => env('FILAMENT_AUTO_LOGOUT_LOCATION', PanelsRenderHook::GLOBAL_SEARCH_BEFORE),
];
```

Usage
-----

[](#usage)

### Quick Usage:

[](#quick-usage)

```
$panel
    ->plugins([
        AutoLogoutPlugin::make(),
    ]);
```

### Customised Usage

[](#customised-usage)

```
use Carbon\Carbon;
use Filament\Support\Colors\Color;
use Niladam\FilamentAutoLogout\AutoLogoutPlugin;

$panel
    ->plugins([
        AutoLogoutPlugin::make()
            ->color(Color::Emerald)                             // Set the color. Defaults to Color::Stone
            ->icon('heroicon-o-arrow-right-start-on-rectangle') // Change the icon. Defaults to 'heroicon-o-clock'
            ->disableIf(fn () => auth()->id() === 1)            // Disable the user with ID 1
            ->logoutAfter(Carbon::SECONDS_PER_MINUTE * 5)       // Logout the user after 5 minutes
            ->withoutWarning()                                  // Disable the warning before logging out
            ->withoutTimeLeft()                                 // Disable the time left
            ->timeLeftText('Oh no. Kicking you in...')          // Change the time left text
            ->timeLeftText('')                                  // Remove the time left text (displays only countdown)
    ]);
```

Translations
------------

[](#translations)

This package has multi-language support. So you will have to first publish the translations using:

```
php artisan vendor:publish --tag="filament-auto-logout-translations"
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Madalin Tache](https://github.com/niladam)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance73

Regular maintenance activity

Popularity38

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~43 days

Recently: every ~67 days

Total

9

Last Release

189d ago

Major Versions

1.x-dev → 2.0.02025-11-11

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ccbd5f80c8e1c691272c1d4652e4da750d3ba4e08bcc2a8f9801f7f3aadf975?d=identicon)[niladam](/maintainers/niladam)

---

Top Contributors

[![niladam](https://avatars.githubusercontent.com/u/4151765?v=4)](https://github.com/niladam "niladam (35 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

filamentfilament-pluginfilamentphplaravellaravelfilament auto logoutafk logoutlogout on idlelogout if idlelogout if afkautologout

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/niladam-filament-auto-logout/health.svg)

```
[![Health](https://phpackages.com/badges/niladam-filament-auto-logout/health.svg)](https://phpackages.com/packages/niladam-filament-auto-logout)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

5925.8k](/packages/marcelweidum-filament-passkeys)[tapp/filament-invite

invite users from filament panel

3145.8k](/packages/tapp-filament-invite)

PHPackages © 2026

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