PHPackages                             nexylan/graylog-sdk - 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. nexylan/graylog-sdk

AbandonedArchivedLibrary[API Development](/categories/api)

nexylan/graylog-sdk
===================

A PHP sdk to communicate with the Graylog REST API

v0.7.0(6y ago)630.9k↓50%2[5 issues](https://github.com/nexylan/graylog-sdk/issues)MITPHPPHP ^7.0

Since Nov 8Pushed 6y ago5 watchersCompare

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

READMEChangelog (1)Dependencies (11)Versions (8)Used By (0)

Graylog SDK
===========

[](#graylog-sdk)

Graylog API PHP SDK.

[![Latest Stable Version](https://camo.githubusercontent.com/589262eda18586b17659b3fd8b012c988f94ad71aa8057efcab2e26bc1fa404a/68747470733a2f2f706f7365722e707567782e6f72672f6e6578796c616e2f677261796c6f672d73646b2f762f737461626c65)](https://packagist.org/packages/nexylan/graylog-sdk)[![Latest Unstable Version](https://camo.githubusercontent.com/1645a563b503a83e3ffe71cba1c7d591cfc0760ec2650bd198e3a2d69c3fff49/68747470733a2f2f706f7365722e707567782e6f72672f6e6578796c616e2f677261796c6f672d73646b2f762f756e737461626c65)](https://packagist.org/packages/nexylan/graylog-sdk)[![License](https://camo.githubusercontent.com/4a06f99e718384b29ba3a1cfd1a0de1fc63fdf2eb8b9793b12ed2959f28ededf/68747470733a2f2f706f7365722e707567782e6f72672f6e6578796c616e2f677261796c6f672d73646b2f6c6963656e7365)](https://packagist.org/packages/nexylan/graylog-sdk)

[![Total Downloads](https://camo.githubusercontent.com/66db17dd23be7343bbcc58e9bf89f5fb4851d02069d60c7e4cb268d29c048a4f/68747470733a2f2f706f7365722e707567782e6f72672f6e6578796c616e2f677261796c6f672d73646b2f646f776e6c6f616473)](https://packagist.org/packages/nexylan/graylog-sdk)[![Monthly Downloads](https://camo.githubusercontent.com/7d23cbdb7e99c2bdc44692c8e3688860d1449160f9a5718f209755c94c32ea7f/68747470733a2f2f706f7365722e707567782e6f72672f6e6578796c616e2f677261796c6f672d73646b2f642f6d6f6e74686c79)](https://packagist.org/packages/nexylan/graylog-sdk)[![Daily Downloads](https://camo.githubusercontent.com/113a5bb72a9b83b584b82ee1c553d0a13dd635f5460dcd03dc4455c70531c8ec/68747470733a2f2f706f7365722e707567782e6f72672f6e6578796c616e2f677261796c6f672d73646b2f642f6461696c79)](https://packagist.org/packages/nexylan/graylog-sdk)

Documentation
-------------

[](#documentation)

All the installation and usage instructions are located in this README. Check it for a specific versions:

- [**0.x**](https://github.com/nexylan/graylog-sdk/tree/master)

Prerequisites
-------------

[](#prerequisites)

This version of the project requires:

- PHP 7.0+

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

[](#installation)

First of all, you need to require this library through Composer:

```
composer require nexylan/graylog-sdk
```

Usage
-----

[](#usage)

```
$graylog = new \Nexy\Graylog\Graylog([
    'base_uri' => 'https://your.graylog.instance.com/api'
]);

// You may authenticate with API token:
$graylog->auth('YourApiToken');
// Or user credentials:
$graylog->auth('YourGraylogUsername', 'YourGrayLogPassword');

// Then, start using the API:
$result = $graylog->search()->relative()->terms('file', 'source: host.com', 0);
```

### Symfony integration

[](#symfony-integration)

Activate the bundle:

```
// config/bundles.php

return [
    Nexy\Graylog\Bridge\Symfony\Bundle\NexyGraylogBundle::class => ['all' => true],
];
```

Add the configuration file:

```
// config/packages/nexy_graylog.yaml

nexy_graylog:
    options:
        base_uri:             ~ # Required
    auth:

        # Can be a username or a token.
        user:                 ~ # Required

        # Required only for username auth.
        password:             null
```

Then, inject the Graylog service thanks to autowiring:

```
class MyService
{
    private $graylog;

    public function __construct(Nexy\Graylog\Graylog $graylog)
    {
        $this->graylog = $graylog;
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance3

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~152 days

Recently: every ~161 days

Total

7

Last Release

2202d ago

### Community

Maintainers

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

---

Top Contributors

[![soullivaneuh](https://avatars.githubusercontent.com/u/1698357?v=4)](https://github.com/soullivaneuh "soullivaneuh (13 commits)")[![scadox](https://avatars.githubusercontent.com/u/10082315?v=4)](https://github.com/scadox "scadox (1 commits)")

---

Tags

apisymfonygraylog

### Embed Badge

![Health badge](/badges/nexylan-graylog-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/nexylan-graylog-sdk/health.svg)](https://phpackages.com/packages/nexylan-graylog-sdk)
```

###  Alternatives

[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9485.4M64](/packages/m4tthumphrey-php-gitlab-api)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)

PHPackages © 2026

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