PHPackages                             webhubworks/laravel-unusual-login - 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. webhubworks/laravel-unusual-login

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

webhubworks/laravel-unusual-login
=================================

This is my package laravel-unusual-login

1.1.5(3mo ago)0108MITPHPPHP ^8.1CI failing

Since Mar 25Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/webhubworks/laravel-unusual-login)[ Packagist](https://packagist.org/packages/webhubworks/laravel-unusual-login)[ Docs](https://github.com/marventhieme/laravel-unusual-login)[ GitHub Sponsors](https://github.com/webhubworks)[ RSS](/packages/webhubworks-laravel-unusual-login/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (19)Used By (0)

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

[](#installation)

You can install the package via composer:

```
composer require webhubworks/laravel-unusual-login
```

You can publish the config and migration files with:

```
php artisan unusual-login:install
```

Finally, you can run the migrations with:

```
php artisan migrate
```

Alternatively, you can publish the config file only with:

```
php artisan vendor:publish --tag="unusual-login-config"
```

Usage
-----

[](#usage)

This package listens to the `Illuminate\Auth\Events\Attempting` and `Illuminate\Auth\Events\Login` events.
On the `Login` event it will run through the checks defined in the config file.
If the specified threshold is reached, the package will fire the `Webhubworks\LaravelUnusualLogin\Events\UnusualLoginDetected` event.
Additionally, you may specify a notification the package will automatically send out.

You may create custom checks. Simply refer to a given check in `src/Checks`.
Your check must extend the `Webhubworks\LaravelUnusualLogin\Checks\Check` class and implement the `handle` method.
It receives and returns the `WebhubWorks\UnusualLogin\DTOs\UnusualLoginDetected` DTO object.

Cleaning / Purging
------------------

[](#cleaning--purging)

### &lt; Laravel 11.0

[](#-laravel-110)

In the `Kernel.php` file add the following to the `schedule` method:

```
// in app/Console/Kernel.php
use Webhubworks\LaravelUnusualLogin\Commands\PurgeLoginAttemptsCommand;

protected function schedule(Schedule $schedule)
{
    $schedule->command(PurgeLoginAttemptsCommand::class)->daily();
}
```

### &gt;= Laravel 11.0

[](#-laravel-110-1)

On the `routes/console.php` add the following lines:

```
use Webhubworks\LaravelUnusualLogin\Commands\PurgeLoginAttemptsCommand;

Schedule::command(PurgeLoginAttemptsCommand::class)->daily();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Marven Thieme](https://github.com/marventhieme)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance78

Regular maintenance activity

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~18 days

Recently: every ~0 days

Total

18

Last Release

116d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec27ae4540fa1b8d81e3fa5f0ff42dd5c988fbc77c2b3014782e237b956e7817?d=identicon)[webhubworks](/maintainers/webhubworks)

---

Top Contributors

[![marventhieme](https://avatars.githubusercontent.com/u/53627227?v=4)](https://github.com/marventhieme "marventhieme (31 commits)")

---

Tags

laravelwebhubworkslaravel-unusual-login

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/webhubworks-laravel-unusual-login/health.svg)

```
[![Health](https://phpackages.com/badges/webhubworks-laravel-unusual-login/health.svg)](https://phpackages.com/packages/webhubworks-laravel-unusual-login)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[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)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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