PHPackages                             loggly/loggly-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. loggly/loggly-php

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

loggly/loggly-php
=================

Loggly SDK for PHP

14510[2 issues](https://github.com/loggly/loggly-php/issues)[1 PRs](https://github.com/loggly/loggly-php/pulls)PHP

Since May 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/loggly/loggly-php)[ Packagist](https://packagist.org/packages/loggly/loggly-php)[ RSS](/packages/loggly-loggly-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Hoover's a Boss](https://camo.githubusercontent.com/1cfc52bd65793c4ff9c155f9936e75542e9eade1f5f7e322d713922cb5686145/687474703a2f2f6c6f67676c792e636f6d2f6173736574732f3466323334656464646162653964353339343030366538352f70726f6d6f5f726f756e642e706e67)](https://camo.githubusercontent.com/1cfc52bd65793c4ff9c155f9936e75542e9eade1f5f7e322d713922cb5686145/687474703a2f2f6c6f67676c792e636f6d2f6173736574732f3466323334656464646162653964353339343030366538352f70726f6d6f5f726f756e642e706e67) Loggly PHP SDK
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-loggly-php-sdk)

==============

This is a library that developers can use to interact with Loggly, without having to deal with the intricacies of cURL.

Input and device IDs can be found with getInputs() and getDevices(), respectively, or by navigating to the page in the Loggly UI and looking for the number in the URL.

Getting Started
===============

[](#getting-started)

The first step is to instantiate a new instance of the Loggly class:

```
$loggly = new Loggly();

$loggly->subdomain = '';

$loggly->username = 'demo';

$loggly->password = '42ftw';

```

Input and Device Methods
========================

[](#input-and-device-methods)

\###Retrieving inputs

```
$result = $loggly->getInputs();

```

\###Retrieving devices

```
$result = $loggly->getDevices();

print $result[0]['ip'];

```

\###Authorizing a device

```
$result = $loggly->addDevice('');

```

\###Unauthorizing a device

```
$result = $loggly->removeDevice('');

```

\###Enabling discovery mode

```
$result = $loggly->enableDiscovery('');

```

\###Disabling discovery mode

```
$result = $loggly->disableDiscovery('');

```

Search Methods
==============

[](#search-methods)

\###Searching

```
$result = $loggly->search('unix', array('from' => 'NOW-3HOURS', 'until' => 'NOW-1HOUR'));

```

\###Facet Searching

```
$result = $loggly->facet('unix', 'ip', array('from' => 'NOW-3HOURS', 'until' => 'NOW-1HOUR'));

```

\###Retrieving saved searches

```
$result = $loggly->getSavedSearches();

```

\###Creating a saved search

```
$params = array('name' => 'foo',
            'context' => '{"search_type":"search", "terms":"error AND 500", "from":"NOW-1HOUR",
            "until":"NOW", "inputs":["app","staging"]}');

$result = $loggly->createSavedSearch($params);

```

\###Updating a saved search

```
$params = array('id' => ,
            'name' => 'bar',
            'context' => '{"search_type":"search", "terms":"error AND 500",
            "from":"NOW-1HOUR", "until":"NOW", "inputs":["app","staging"]}');

$result = $loggly->updateSavedSearch($params);

```

\###Deleting a saved search

```
$result = $loggly->deleteSavedSearch();

```

\###Running a saved search

```
$result = $loggly->runSavedSearch();

```

\###Running a faceted saved search

```
$result = $loggly->runSavedSearch(getCustomer();

```

\###Get customer stats

```
$result = $loggly->getCustomerStats();

```

License
=======

[](#license)

Copyright 2012 Loggly Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author
======

[](#author)

[David Lanstein](https://github.com/lanstein)

Support
=======

[](#support)

Have questions?

Contact  (please include your subdomain)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10634069?v=4)[teqoz](/maintainers/teqoz)[@teqoz](https://github.com/teqoz)

---

Top Contributors

[![alexeyshockov](https://avatars.githubusercontent.com/u/203120?v=4)](https://github.com/alexeyshockov "alexeyshockov (1 commits)")[![siboulet](https://avatars.githubusercontent.com/u/2367545?v=4)](https://github.com/siboulet "siboulet (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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