PHPackages                             devpulse/core - 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. devpulse/core

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

devpulse/core
=============

DevPulse PHP SDK — core error capture and transport

2.0.0(2mo ago)0461MITPHPPHP ^8.1

Since Mar 22Pushed 2mo agoCompare

[ Source](https://github.com/SekolahCode/devpulse-core)[ Packagist](https://packagist.org/packages/devpulse/core)[ RSS](/packages/devpulse-core/feed)WikiDiscussions main Synced 1mo ago

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

devpulse/core
=============

[](#devpulsecore)

PHP core SDK for DevPulse — low-level error capture and HTTP transport.

This package is the foundation used by the [Laravel](../laravel) integration and can be used standalone in any PHP 8.1+ project.

Requirements
------------

[](#requirements)

- PHP 8.1+
- A running DevPulse server (v1.0+)

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

[](#installation)

```
composer require devpulse/core
```

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

[](#quick-start)

```
use DevPulse\Client;

$client = new Client([
    'dsn'         => 'https://your-devpulse-host/api/ingest/YOUR_API_KEY',
    'environment' => 'production',
    'release'     => '1.0.0',   // optional
    'async'       => true,      // fire-and-forget via register_shutdown_function (default)
    'timeout'     => 2,         // HTTP timeout in seconds
]);

// Register global error/exception/shutdown handlers
$client->register();
```

After `register()`, all unhandled exceptions, PHP errors, and fatal shutdown errors are captured automatically.

Manual Capture
--------------

[](#manual-capture)

```
try {
    riskyOperation();
} catch (\Throwable $e) {
    $client->captureException($e, ['order_id' => $orderId]);
}

$client->captureMessage('Payment gateway timeout', 'warning', ['gateway' => 'stripe']);
```

Static Facade
-------------

[](#static-facade)

```
use DevPulse\DevPulse;

DevPulse::init([
    'dsn'         => 'https://your-devpulse-host/api/ingest/YOUR_API_KEY',
    'environment' => 'production',
]);

DevPulse::captureException($e);
DevPulse::captureMessage('Something happened', 'info');
```

What's Captured
---------------

[](#whats-captured)

Each event automatically includes:

- **Exception type, message, and stack trace** with source context (±5 lines)
- **PHP version, OS, SAPI, and peak memory**
- **Request context** — URL, method, client IP, sanitised headers (no auth/cookie/x-api-key)
- **SDK version** — `devpulse-php/2.0.0` for SDK version tracking

### IP resolution

[](#ip-resolution)

The SDK reads `X-Forwarded-For` only when `REMOTE_ADDR` is a known trusted proxy, preventing IP spoofing. The default trusted ranges are RFC-1918 private networks.

Development
-----------

[](#development)

```
composer install
vendor/bin/phpunit          # run tests
vendor/bin/phpstan analyse  # static analysis
```

License
-------

[](#license)

MIT — see [LICENSE](../../LICENSE)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance82

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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 ~3 days

Total

5

Last Release

89d ago

Major Versions

v1.2.1 → 2.0.02026-04-04

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devpulse-core/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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