PHPackages                             dobryak/phpsyslognet - 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. dobryak/phpsyslognet

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

dobryak/phpsyslognet
====================

PHP Syslog client that conforms to the RFC5424 syslog standard and supports TCP/UDP transports

v1.0.0(5y ago)13GNU GPLv3PHPPHP ^5.6

Since Nov 28Pushed 3y ago1 watchersCompare

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

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

PHPSYSLOGNET
============

[](#phpsyslognet)

PHP syslog clinet that conforms to the [RFC 5424](https://tools.ietf.org/html/rfc5424) syslog standard and supports UDP and TCP transports as well as UNIX domain sockets.

USAGE
=====

[](#usage)

Simple way:

```
use SyslogNet\SyslogNet;
use SyslogNet\Severity;
use SyslogNet\Facility;
use SyslogNet\Formatters\FormatterRFC5424;
use SyslogNet\Transports\Socket;

$syslog = new SyslogNet(
    Socket::createUDP('127.0.0.1', 514),
    new FormatterRFC5424(),
    Facility::DAEMON,
    'myService'
);

$syslog->send(Severity::CRIT, 'My test message');
```

Advanced way:

```
use SyslogNet\SyslogNet;
use SyslogNet\Severity;
use SyslogNet\Transports\Socket;
use SyslogNet\StructuredDataElement;

$sys = new SyslogNet(Socket::createUDP('127.0.0.1', 514));

$message = $sys->createMessage(Severity::CRIT, 'My test message');
$message->setAppName('myService');
$message->setHostName('myHostName');
$message->setMsgId("m1");

$sd1 = new StructuredDataElement('id1');
$sd1['key1'] = 'value1';
$sd1['key2'] = 'value2';

$sd2 = new StructuredDataElement('id2');
$sd2['key1'] = 'value1';
$sd2['key2'] = 'value2';

$message->addSDElement($sd1);
$message->addSDElement($sd2);

$sys->sendMessage($message);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1990d ago

### Community

Maintainers

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

---

Top Contributors

[![dobryak](https://avatars.githubusercontent.com/u/1159979?v=4)](https://github.com/dobryak "dobryak (1 commits)")

---

Tags

phprfc5424syslogtcpudpunixsocketsyslogrfc5424syslog-tcpsyslog-udpsyslog-unix

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dobryak-phpsyslognet/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)

PHPackages © 2026

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