PHPackages                             hosmelq/laravel-logsnag - 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. hosmelq/laravel-logsnag

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

hosmelq/laravel-logsnag
=======================

Integrate the power of LogSnag's real-time event tracking into your Laravel application.

v0.4.0(2y ago)237.9k↓50%3[1 issues](https://github.com/hosmelq/laravel-logsnag/issues)MITPHPPHP ^8.1 || ^8.2 || ^8.3

Since Aug 13Pushed 2y ago2 watchersCompare

[ Source](https://github.com/hosmelq/laravel-logsnag)[ Packagist](https://packagist.org/packages/hosmelq/laravel-logsnag)[ RSS](/packages/hosmelq-laravel-logsnag/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (11)Used By (0)

> This is an unofficial package for [LogSnag](https://logsnag.com).

Laravel LogSnag
===============

[](#laravel-logsnag)

Easily integrate [LogSnag](https://logsnag.com)'s event tracking into your Laravel app. Monitor user activity, get realtime analytics, and receive instant insights.

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

[](#requirements)

This package requires PHP 8.1 or higher and Laravel 10.0 or higher.

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

[](#installation)

You can install the package via composer:

```
composer require hosmelq/laravel-logsnag
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --tag="logsnag-config"
```

Alternatively, you may utilize the install command.

```
php artisan logsnag:install
```

Next, you should configure your LogSnag API token and project name in your application’s `.env` file:

```
LOGSNAG_API_TOKEN=your-api-token
LOGSNAG_PROJECT=your-project-name
```

We determine the project to send events to using `LOGSNAG_PROJECT`. Alternatively, you can specify the project name when creating an event or insight.

Usage
-----

[](#usage)

### Publish Event

[](#publish-event)

You can use the `LogSnag` facade to publish events, and insights.

```
use HosmelQ\LogSnag\Laravel\Facades\LogSnag;

LogSnag::log()->publish([
    'channel' => 'waitlist',
    'event' => 'User Joined Waitlist',
    'icon' => '🎉',
]);
```

This method returns a [Log](src/Responses/Log.php) instance that provides access to the response from the LogSnag API. For more information and a list of available parameters, refer to the LogSnag [documentation](https://docs.logsnag.com/endpoints/log) for Log.

Publish Insight
---------------

[](#publish-insight)

```
use HosmelQ\LogSnag\Laravel\Facades\LogSnag;

LogSnag::insight()->publish([
    'icon' => '🎉',
    'title' => 'Registered Users on Waitlist',
    'value' => 8,
]);
```

This method returns an [Insight](src/Responses/Log.php) instance that provides access to the response from the LogSnag API. For more information and a list of available parameters, refer to the LogSnag [documentation](https://docs.logsnag.com/endpoints/insight) for Insight.

User Properties
---------------

[](#user-properties)

```
use HosmelQ\LogSnag\Laravel\Facades\LogSnag;

LogSnag::identify()->publish([
    'properties' => [
        'email' => 'john@doe.com',
        'name' => 'John Doe',
        'plan' => 'premium',
    ],
    'user_id' => '123',
]);
```

This method returns an [Identify](src/Responses/Identify.php) instance that provides access to the response from the LogSnag API. For more information and a list of available parameters, refer to the LogSnag [documentation](https://docs.logsnag.com/endpoints/identify) for Identify.

Apart from the facade, you can utilize the `logsnag` helper function.

```
logsnag()->log()->publish([
    'channel' => 'waitlist',
    'event' => 'User Joined Waitlist',
    'icon' => '🎉',
]);
```

Credits
-------

[](#credits)

- [Hosmel Quintana](https://github.com/hosmelq)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.6% 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 ~27 days

Recently: every ~60 days

Total

10

Last Release

763d ago

PHP version history (4 changes)v0.1.0PHP 8.0

v0.1.1PHP ^8

v0.2.0PHP ^8.1

v0.4.0PHP ^8.1 || ^8.2 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/97fd048037c6d5ccfeebf11961838d5db2dca1baca14fefa373230b301389a03?d=identicon)[hosmelq](/maintainers/hosmelq)

---

Top Contributors

[![hosmelq](https://avatars.githubusercontent.com/u/1166143?v=4)](https://github.com/hosmelq "hosmelq (43 commits)")[![hempsworth](https://avatars.githubusercontent.com/u/92863?v=4)](https://github.com/hempsworth "hempsworth (2 commits)")

---

Tags

loglaravellogginghosmelqlaravel-logsnaglogsnag

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hosmelq-laravel-logsnag/health.svg)

```
[![Health](https://phpackages.com/badges/hosmelq-laravel-logsnag/health.svg)](https://phpackages.com/packages/hosmelq-laravel-logsnag)
```

###  Alternatives

[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[oanhnn/laravel-logzio

Integrate Logz.io into PHP and Laravel 5.6+ Application

1062.8k](/packages/oanhnn-laravel-logzio)[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)
