PHPackages                             skyosev/login-activity-log - 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. skyosev/login-activity-log

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

skyosev/login-activity-log
==========================

Track users login activity for Laravel 5.5+

1.0.3(5y ago)01.6k1MITPHPPHP &gt;=7.2

Since Dec 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/skyosev/login-activity-log)[ Packagist](https://packagist.org/packages/skyosev/login-activity-log)[ Docs](https://github.com/skyosev/login-activity)[ RSS](/packages/skyosev-login-activity-log/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Track user login activity in Laravel
====================================

[](#track-user-login-activity-in-laravel)

This package will subscribe for login and logout events and will log data every time they are fired. The log target can be the database or the default Laravel log handler.

Requirements
------------

[](#requirements)

Laravel Framework &gt; 5.5

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

[](#installation)

In terminal

```
composer require skyosev/login-activity-log
```

Publish migrations

```
php artisan vendor:publish --provider="Kiva\LoginActivity\LoginActivityServiceProvider" --tag="migrations"
php artisan migrate
```

Optionally publish config

```
php artisan vendor:publish --provider="Kiva\LoginActivity\LoginActivityServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

Once installed, the package will begin to store logs automatically in the appropriate target (database by default). There is also a simple repository implementation with several methods for logs retrieval from database. You can use the Kiva\\LoginActivity\\Facades\\LoginActivityRepository facade to access them:

Get latest logs

```
$logs = LoginActivityRepository::getLatestLogs(100); // number of logs to get (leave empty to use the config value)
```

Get latest login logs

```
$logs = LoginActivityRepository::getLatestLoginLogs(100); // number of logs to get (leave empty to use the config value)
```

Get latest logout logs

```
$logs = LoginActivityRepository::getLatestLogoutLogs(100); // number of logs to get (leave empty to use the config value)
```

Clean log

```
$logs = LoginActivityRepository::cleanLog(30); // Offset in days
```

Clean the log from terminal

```
php artisan login-activity:clean
```

Credits
-------

[](#credits)

-
-

License
-------

[](#license)

MIT -

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~209 days

Total

4

Last Release

2110d ago

### Community

Maintainers

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

---

Top Contributors

[![skyosev](https://avatars.githubusercontent.com/u/209973?v=4)](https://github.com/skyosev "skyosev (4 commits)")[![felabrecque](https://avatars.githubusercontent.com/u/165329484?v=4)](https://github.com/felabrecque "felabrecque (1 commits)")

---

Tags

Laravel 5 login activitylogin activity log

### Embed Badge

![Health badge](/badges/skyosev-login-activity-log/health.svg)

```
[![Health](https://phpackages.com/badges/skyosev-login-activity-log/health.svg)](https://phpackages.com/packages/skyosev-login-activity-log)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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