Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Gelf Php Laravel Package

mlehner/gelf-php

mlehner/gelf-php is a PHP library for sending GELF (Graylog Extended Log Format) messages to Graylog over UDP or TCP, with chunked message support, publishers, transports, and a PSR-3 logger for structured application logging.

Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: Limited. mlehner/gelf-php is a GELF transport/serialization library for Graylog2, not a Laravel package. It can fit only as a low-level log emitter behind Laravel’s Monolog logging stack; it does not provide Laravel service providers, config publishing, facades, queue integration, or framework-native observability.
  • Integration feasibility: Medium-to-low. A proof of concept may be possible by wrapping it in a custom Monolog handler or logging channel, but Composer constraints, PHP-version compatibility, and the absence of a maintained repository make production integration uncertain.
  • Technical risk: High. Last release was 2014, with only 21 stars and an unknown repository. Expect abandoned dependencies, PHP 8.x incompatibility, missing TLS/HTTP transport coverage, no CVE response process, and no Laravel version guarantees. MIT license is acceptable, but license alone does not mitigate abandonment.
  • Key questions: What exact repository and Composer package are being referenced? Which PHP and Laravel versions must be supported? Does it support UDP, TCP, TLS, and HTTP GELF inputs? What Graylog version and input type are targeted? Is packet loss acceptable for audit/security logs? Who owns a fork if a PHP 8 incompatibility appears? Can we standardize on maintained graylog2/gelf-php or Monolog’s GELF handler instead?

Integration Approach

  • Stack fit: Laravel already uses Monolog. The clean fit is a custom Laravel logging channel backed by a GELF handler, with structured context and exception formatting. mlehner/gelf-php should not become a direct application dependency if a maintained GELF library can provide the same protocol support.
  • Migration path: Treat this package as a time-boxed evaluation only. Build a non-production proof of concept, validate GELF payloads against the target Graylog input, then replace it with a maintained library before production. If already embedded, isolate it behind an internal logging adapter so the transport can be swapped without changing application code.
  • Compatibility: Verify PHP 8.1/8.2/8.3 compatibility, Composer dependency conflicts, ext-sockets/stream requirements, UDP packet-size handling, and Laravel’s Monolog major version. Confirm whether TCP/TLS or HTTP inputs are required; UDP-only may be unacceptable for regulated or high-value logs.
  • Sequencing: 1) inventory log requirements and Graylog input constraints; 2) compare maintained alternatives; 3) run a containerized proof of concept; 4) add environment-based configuration and a custom logging channel; 5) test failure behavior, packet loss, and throughput; 6) roll out to one service; 7) document replacement/exit plan before broader adoption.

Operational Impact

  • Maintenance: Poor. The package is effectively abandoned, so upgrades will be blocked by PHP/Laravel changes and dependency conflicts. Budget for an internal fork or replacement; do not assume upstream fixes.
  • Support: Minimal. Community support is unlikely, documentation is stale, and there is no vendor SLA or security-response process. Operational ownership must sit with the platform/backend team.
  • Scaling: GELF over UDP can be fast but lossy and has no application-level backpressure. High log volume may require chunking, local agents, queues, or TCP/TLS with careful timeout handling. Graylog input capacity and network egress must be sized explicitly.
  • Failure modes: UDP packet loss, oversized messages, DNS/network failures, serialization errors, Graylog input downtime, blocking TCP calls increasing request latency, and PHP fatal errors from incompatible code. Logging failures should never take down the application; use best-effort delivery and fallback to local files.
  • Ramp-up: Low for basic “send a GELF message” usage; moderate for safe production operation. Teams need familiarity with Laravel/Monolog channels, GELF framing, Graylog inputs, retry/backpressure behavior, and log-retention/PII controls. Recommendation: do not adopt as a strategic dependency; use only for a narrow proof of concept and prefer a maintained GELF/Monolog integration for production.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package