PHPackages                             krutyosila/authentications - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. krutyosila/authentications

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

krutyosila/authentications
==========================

Login Authentications Log with Country

1.0(5y ago)227MITPHP

Since Nov 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/krutyosila/authentications)[ Packagist](https://packagist.org/packages/krutyosila/authentications)[ Docs](https://github.com/krutyosila/authentications)[ RSS](/packages/krutyosila-authentications/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### Laravel Login Authentications Log with Country

[](#laravel-login-authentications-log-with-country)

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

[](#installation)

```
composer require krutyosila/authentications

```

```
php artisan vendor:publish --provider="Krutyosila\Authentications\AuthenticationsProvider"
php artisan migrate

```

Usage
-----

[](#usage)

Add WalletTrait to Users Model

```
use Krutyosila\Authentications\Traits\UserAuthenticationTrait

class User exteds Model
{
    use UserAuthenticationTrait;
    ...

```

**Authentications Logs**

```
$user->authentications();

```

response example

```
    "id" => 1
    "user_id" => 3
    "ip_address" => "::1"
    "country" => "Turkey"
    "country_code" => "TR"
    "user_agent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
    "ua_parsed" => "{"os": {"major": "10", "minor": "15", "patch": "7", "family": "Mac OS X", "patchMinor": null}, "ua": {"major": "86", "minor": "0", "patch": "4240", "family": "Chrome"}, "device": {"brand": "Apple", "model": "Mac", "family": "Mac"}, "originalUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"} ◀"
    "created_at" => "2020-11-20 22:47:14"
    "updated_at" => "2020-11-20 22:47:14"

```

example model for last logins

Add User Model

```
public function lastAuthentications($limit = 5)
{
    return $this->authentications()->orderBy('created_at', 'DESC')->simplePaginate($limit);
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1378a2897d8d081991687d4b9d2937d482d24a9390b8c998daaad54c3e4b29fc?d=identicon)[krutyosila](/maintainers/krutyosila)

---

Top Contributors

[![krutyosila](https://avatars.githubusercontent.com/u/34428009?v=4)](https://github.com/krutyosila "krutyosila (3 commits)")

---

Tags

logpluginlaravelloginauthentications

### Embed Badge

![Health badge](/badges/krutyosila-authentications/health.svg)

```
[![Health](https://phpackages.com/badges/krutyosila-authentications/health.svg)](https://phpackages.com/packages/krutyosila-authentications)
```

###  Alternatives

[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

1065.8k](/packages/moesif-moesif-laravel)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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