PHPackages                             modernben/track\_logins - 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. modernben/track\_logins

ActiveLibrary

modernben/track\_logins
=======================

A package to quickly add on a login log

v0.1.1(5y ago)061MITPHPPHP ^8.0

Since Apr 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/modernben/track-logins)[ Packagist](https://packagist.org/packages/modernben/track_logins)[ Docs](https://github.com/modernben/track_logins)[ GitHub Sponsors](https://github.com/modernben)[ RSS](/packages/modernben-track-logins/feed)WikiDiscussions master Synced today

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

A package to quickly add on a login log
=======================================

[](#a-package-to-quickly-add-on-a-login-log)

[![Latest Version on Packagist](https://camo.githubusercontent.com/603402c92867065081c6b305f974cd9b4d65a1ab6f9258909e3e1a8c9ea59266/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6465726e62656e2f747261636b5f6c6f67696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/modernben/track_logins)[![Total Downloads](https://camo.githubusercontent.com/2622bbe09a3fac5890ceb42220201b52c880a6f9abc4fae102f3601ed82d3b55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6465726e62656e2f747261636b5f6c6f67696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/modernben/track_logins)

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

[](#installation)

You can install the package via composer:

```
composer require modernben/track_logins
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Modernben\TrackLogins\TrackLoginsServiceProvider" --tag="track_logins-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Modernben\TrackLogins\TrackLoginsServiceProvider" --tag="track_logins-config"
```

This is the contents of the published config file:

```
return [

    /**
     * This value sets the name of the table you would like
     * to store the logins on.
     */
    'table' => env('MODERNBEN_LOGIN_TABLE', 'last_logins'),
];
```

Usage
-----

[](#usage)

Add the `Modernben\Traits\TrackLogins` trait to your user model and that's it! This works by hooking into the `Login` event thrown by Laravel.

Testing
-------

[](#testing)

```
composer test
```

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)

- [Ben Miller](https://github.com/modernben)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~0 days

Total

2

Last Release

1849d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71c1ed28974c5a60df0a84f0c98ecf9d9c421e988ce7a9cfd28ae06a500599d9?d=identicon)[modernben](/maintainers/modernben)

---

Top Contributors

[![modernben](https://avatars.githubusercontent.com/u/67608755?v=4)](https://github.com/modernben "modernben (8 commits)")[![nowendwell](https://avatars.githubusercontent.com/u/5315824?v=4)](https://github.com/nowendwell "nowendwell (1 commits)")

---

Tags

hacktoberfestlaravellaravelmodernbentrack\_logins

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/modernben-track-logins/health.svg)

```
[![Health](https://phpackages.com/badges/modernben-track-logins/health.svg)](https://phpackages.com/packages/modernben-track-logins)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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