PHPackages                             roublez/logsnag-php - 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. [API Development](/categories/api)
4. /
5. roublez/logsnag-php

ActiveLibrary[API Development](/categories/api)

roublez/logsnag-php
===================

A PHP SDK for the LogSnag API

2.0.0(2y ago)22.0kMITPHPPHP ^8.1

Since Aug 16Pushed 2y agoCompare

[ Source](https://github.com/roublez/logsnag-php)[ Packagist](https://packagist.org/packages/roublez/logsnag-php)[ RSS](/packages/roublez-logsnag-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

LogSnag PHP
===========

[](#logsnag-php)

A PHP SDK for the LogSnag API – [logsnag.com](https://logsnag.com)

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

[](#installation)

```
composer require hallewood/logsnag-php
```

Usage
-----

[](#usage)

### Initialize Client

[](#initialize-client)

```
use Hallewood\LogSnag\Client;

$logsnag = new Client('7f568d735724351757637b1dbf108e5', 'my-project');
```

The project name will be auto-injected in all requests.

### Log

[](#log)

```
//
// The channel and the event name are the only required parameters.
$logsnag->log('subscriptions', 'User subscribed!');

//
// Other parameters can be added when needed.
$logsnag->log(
    channel: 'subscriptions',
    event: 'User subscribed!',
    userId: '123-456',
    description: 'A new user subscribed to the **premium plan**.',
    icon: '👍🏼',
    notify: true,
    tags: [
        'payment-method': 'card',
        'plan': 'monthly',
    ],
    parser: 'markdown',
    timestamp: 1709842921,
);
```

### Identify

[](#identify)

```
//
// Both the user id and the properties are required.
$logsnag->identify(
    userId: '123-456',
    properties: [
        'active': 'yes',
        'signed-in': 'no',
    ],
);
```

### Insight

[](#insight)

```
//
// The title and the value are the only required parameters.
$logsnag->insight('Subscribed Users', 12);

//
// Other parameters can be added when needed.
$logsnag->log(
    title: 'Status',
    value: 'watered',
    icon: '🪴',
);
```

### Insight Mutate

[](#insight-mutate)

```
//
// The title and at least one mutation is required.
$logsnag->insight('Subscribed Users', inc: 3);

//
// Other parameters can be added when needed.
$logsnag->log(
    title: 'Subscribed Users',
    inc: -2,
    icon: '👍🏼',
);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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 ~568 days

Total

2

Last Release

848d ago

Major Versions

1.0.0 → 2.0.02024-03-07

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0.0|^8.1.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50237950?v=4)[Dennis Prudlo](/maintainers/dennisprudlo)[@dennisprudlo](https://github.com/dennisprudlo)

---

Top Contributors

[![dennisprudlo](https://avatars.githubusercontent.com/u/50237950?v=4)](https://github.com/dennisprudlo "dennisprudlo (8 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/roublez-logsnag-php/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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