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

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

logdash/php-sdk
===============

Modern observability platform SDK for PHP

v1.0.6(10mo ago)02.5k↓50%1MITPHPPHP &gt;=8.1CI failing

Since Jun 27Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/logdash-io/php-sdk)[ Packagist](https://packagist.org/packages/logdash/php-sdk)[ Docs](https://github.com/logdash-io/php-sdk)[ RSS](/packages/logdash-php-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Logdash PHP SDK
===============

[](#logdash-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/9cb7617754378d8b6c39d76c0939909641014ee093755c27f4e55172332fb3fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f67646173682f7068702d73646b)](https://packagist.org/packages/logdash/php-sdk)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/45d36955804bf3f4f17097b05a7f41a28e578dc24e0d3ad0d21ae9d9762f44c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d626c75652e737667)](https://php.net)[![Tests](https://github.com/logdash-io/php-sdk/workflows/Tests/badge.svg)](https://github.com/logdash-io/php-sdk/actions)

> **Official PHP SDK for [Logdash.io](https://logdash.io/) - Zero-configuration observability platform designed for developers working on side projects and prototypes.**

Why Logdash?
------------

[](#why-logdash)

Most observability solutions feel overwhelming for small projects and prototypes. Logdash provides **instant logging and real-time metrics** without complex configurations. Just add the SDK and start monitoring your application immediately.

Key Features
------------

[](#key-features)

- **🚀 Zero Configuration**: Start logging and tracking metrics in seconds
- **📊 Real-time Dashboard**: Cloud-hosted interface with live data updates
- **📝 Structured Logging**: Multiple log levels with rich context support
- **📈 Custom Metrics**: Track counters, gauges, and business metrics effortlessly
- **⚡ Asynchronous**: Non-blocking operations with automatic resource management
- **🛡️ Production Ready**: Built with enterprise-grade patterns and error handling
- **🔧 Framework Agnostic**: Works with Laravel, Symfony, or standalone PHP apps
- **🐘 PHP 8.1+ Compatible**: Supports PHP 8.1, 8.2, 8.3, and all newer versions

Pre-requisites
--------------

[](#pre-requisites)

Setup your free project in less than 2 minutes at [logdash.io](https://logdash.io/)

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

[](#installation)

### Composer

[](#composer)

```
composer require logdash/php-sdk
```

Quick Start
-----------

[](#quick-start)

### Basic Logging (Local Only)

[](#basic-logging-local-only)

```
