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

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

misaf/laravel-authify-log
=========================

A logging utility for user authentication activities in Laravel.

v1.0.3(1w ago)12652MITPHPPHP ^8.3

Since Feb 4Pushed 1w agoCompare

[ Source](https://github.com/misaf/laravel-authify-log)[ Packagist](https://packagist.org/packages/misaf/laravel-authify-log)[ RSS](/packages/misaf-laravel-authify-log/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelog (1)Dependencies (25)Versions (5)Used By (2)

Laravel Authify Log
===================

[](#laravel-authify-log)

**A logging utility for user authentication activities in Laravel.**

Features
--------

[](#features)

- Log all user authentication events (login, logout, failed attempts, password resets, etc.).
- Includes user metadata such as IP address, browser, and location.
- Supports [Blade Country Flags](https://github.com/stijnvanouplines/blade-country-flags) to display user origin.
- Easy to integrate into any Laravel 10+ application.
- Fully configurable via Laravel service provider.
- Built with [Spatie Laravel Package Tools](https://spatie.be/docs/laravel-package-tools) for easy package management.

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

[](#requirements)

- PHP ^8.3
- Laravel 10+
- Dependencies:
    - `stijnvanouplines/blade-country-flags ^1.0.6`
    - `spatie/laravel-package-tools ^1.92.4`

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

[](#installation)

Install via Composer:

```
composer require misaf/laravel-authify-log
Usage
Publish the service provider (optional for customization):

bash
Copy code
php artisan vendor:publish --provider="Misaf\LaravelAuthifyLog\Providers\AuthifyLogServiceProvider"
Log authentication events automatically:

The package hooks into Laravel’s authentication events by default:

Login → Logged automatically

Logout → Logged automatically

Failed login attempts → Logged automatically

Password resets → Logged automatically

Optional: Display user location with flags:

In Blade views, you can use country flags:

blade
Copy code
@countryFlag($user->country_code)
Database Factories & Seeders:

You can use the included factories and seeders for testing:

bash
Copy code
php artisan db:seed --class=Misaf\\AuthifyLog\\Database\\Seeders\\AuthifyLogSeeder
Testing
If you have tests in the tests/ folder, run them using:

bash
Copy code
composer test
(You may need Pest or PHPUnit configured depending on your setup.)

Contributing
Contributions, issues, and feature requests are welcome!
Feel free to fork the repository and submit pull requests.

License
This package is open-sourced under the MIT license.
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community10

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

Every ~58 days

Total

4

Last Release

8d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41fd7351d25e29dafa18068d0418eecf6bb47a7473aabe6bc674b4ca35e71805?d=identicon)[misaf](/maintainers/misaf)

---

Top Contributors

[![misaf](https://avatars.githubusercontent.com/u/8195685?v=4)](https://github.com/misaf "misaf (19 commits)")

---

Tags

loglaravelauthify

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/misaf-laravel-authify-log/health.svg)

```
[![Health](https://phpackages.com/badges/misaf-laravel-authify-log/health.svg)](https://phpackages.com/packages/misaf-laravel-authify-log)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k131.9M229](/packages/sentry-sentry-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M182](/packages/spatie-laravel-health)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

298594.9k1](/packages/larabug-larabug)[spatie/laravel-flare

Send Laravel errors to Flare

111.6M8](/packages/spatie-laravel-flare)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

65115.4k](/packages/masterro-laravel-mail-viewer)

PHPackages © 2026

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