PHPackages                             error-tracker/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. [HTTP &amp; Networking](/categories/http)
4. /
5. error-tracker/php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

error-tracker/php-sdk
=====================

PHP libary for interacting with the error tracker api

v0.1(6y ago)015.3k↓33.3%[1 PRs](https://github.com/error-tracker/php-sdk/pulls)2PHPCI passing

Since Aug 9Pushed 3mo ago4 watchersCompare

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

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

[Error Tracker](https://error-tracker.com) PHP SDK
==================================================

[](#error-tracker-php-sdk)

The core Error Tracker SDK for [PHP](https://php.net). This library is for interacting with the Error Tracker API with PHP. You can also use this package for registering an error handler for a vanilla PHP app.

Who is this for?
----------------

[](#who-is-this-for)

- Developers who need a universal view of errors and bugs - before their client or users complain.
- Developers who need raw access to the API so you can report your own errors.
- Those using a native PHP application and need to register an error handler.
- Developers creating a third party plug-in for an unsupported PHP framework.
- QA / Testers who need an overall knowledge of errors across multiple systems

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

[](#installation)

You can install this package with composer.

```
composer require erorr-traker/php-sdk
```

The API Client
--------------

[](#the-api-client)

The API client class can be used to access to the Error Tracker API

### Initialization

[](#initialization)

```
use ErrorTracker\Client;

$client = new Client('APP_KEY');
```

### Reporting an error

[](#reporting-an-error)

```
$client->report([
    'name' => 'The error name',
    'text' => 'A message about the error'
]);
```

The Error Handler
-----------------

[](#the-error-handler)

If you are using a vanilla PHP application you can register an error handler to catch your errors and sent them straight to Error Tracker. Simply create a new instance of the `Handler` class.

```
use ErrorTracker\Handler;

new Handler('MY_APP_KEY');
```

Disable and enable sending errors with the `enabled` property of the `Handler` class

```
$handler = new Handler('MY_APP_KEY');

// Turn off
$handler->enabled = false;

// Turn back on
$handler->enabled = true;
```

Unregister the handlers by using the `unregister` function

```
$handler->unregister();
```

Contributing
------------

[](#contributing)

### Getting set up

[](#getting-set-up)

Clone the repo and run `composer install`. Then start hacking!

### Testing

[](#testing)

All new features of bug fixes must be tested. Testing is with phpunit and can be run with the following command

```
composer run-script test
```

### Coding Standards

[](#coding-standards)

This library uses psr2 coding standards and `squizlabs/php_codesniffer` for linting. There is a composer script for this:

```
composer run-script lint
```

### Pull Requests

[](#pull-requests)

Before you create a pull request with you changes, the pre-commit script must pass. That can be run as follows:

```
composer run-script pre-commit
```

Credits
-------

[](#credits)

This package is created and maintained by [Practically.io](https://practically.io/)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance53

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2474d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14832454?v=4)[Ade Attwood](/maintainers/AdeAttwood)[@AdeAttwood](https://github.com/AdeAttwood)

---

Top Contributors

[![AdeAttwood](https://avatars.githubusercontent.com/u/14832454?v=4)](https://github.com/AdeAttwood "AdeAttwood (4 commits)")[![phenotype2](https://avatars.githubusercontent.com/u/4130962?v=4)](https://github.com/phenotype2 "phenotype2 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/error-tracker-php-sdk/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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