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

Abandoned → [graylog2/gelf-php](/?search=graylog2%2Fgelf-php)Library[Logging &amp; Monitoring](/categories/logging)

mlehner/gelf-php
================

Fork of gelf-php with PHP namespace support

v1.1.0(12y ago)21714.2k↓28%11[1 issues](https://github.com/mlehner/gelf-php/issues)1MITPHP

Since Apr 17Pushed 11y ago4 watchersCompare

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

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

mlehner/gelf-php
================

[](#mlehnergelf-php)

[![Build Status](https://camo.githubusercontent.com/2709cbda01b11f22b88bfa4d74593aac37b5edb9701b3e875b262a33b2ca8eb6/68747470733a2f2f7472617669732d63692e6f72672f6d6c65686e65722f67656c662d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mlehner/gelf-php)

This library is abled to send [GELF v1.1](http://graylog2.org/gelf#specs) Messages to compatible servers like a [Graylog2 Server](http://graylog2.org/) in version v0.20.

Status
------

[](#status)

This library is quite old and has just the single mentioned feature.

Further development and new features are *not desired* in favor of this newer fork [bzikarsky/gelf-php](https://github.com/bzikarsky/gelf-php).

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

[](#installation)

Simply require the package by its name with composer:

```
$ php composer.phar require mlehner/gelf-php "~1.1.0"
```

Usage
-----

[](#usage)

Example:

```
// Create a Message and set your logging information.
$message = new Message();
$message->setFullMessage('Your full log mesage');
$message->setHost('example.com');
$message->setLevel(3); // List of supported levels: http://en.wikipedia.org/wiki/Syslog#Severity_levels
$message->setShortMessage('Short message');
$message->setTimestamp(time());
$message->setVersion('1.2.3');
// The following values are deprecated and will be transferred as additionals.
$message->setFile('foo.php');
$message->setLine(42);
$message->setFacility('server42');

// Create a Publisher and send the message to your GELF server.
// Beware: Hostnames need a DNS lookup, which might be slow!
$publisher = new MessagePublisher('192.168.99.99');
$publisher->publish($message);
```

License
-------

[](#license)

This bundle is licensed under MIT.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% 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 ~225 days

Total

4

Last Release

4470d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/365438?v=4)[Matt Lehner](/maintainers/mlehner)[@mlehner](https://github.com/mlehner)

---

Top Contributors

[![h4cc](https://avatars.githubusercontent.com/u/2981491?v=4)](https://github.com/h4cc "h4cc (12 commits)")[![mlehner](https://avatars.githubusercontent.com/u/365438?v=4)](https://github.com/mlehner "mlehner (3 commits)")[![msabramo](https://avatars.githubusercontent.com/u/305268?v=4)](https://github.com/msabramo "msabramo (3 commits)")[![maxromanovsky](https://avatars.githubusercontent.com/u/749775?v=4)](https://github.com/maxromanovsky "maxromanovsky (2 commits)")[![dsabitov](https://avatars.githubusercontent.com/u/460266?v=4)](https://github.com/dsabitov "dsabitov (1 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mlehner-gelf-php/health.svg)

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

###  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)[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)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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