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

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

palzin-apm/palzin-php
=====================

Monitoring Package

24.8.1(1y ago)01584MITPHPPHP &gt;=7.2

Since Jun 10Pushed 1y agoCompare

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

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

Palzin APM | Real-Time Code Execution monitoring and Bug tracking
=================================================================

[](#palzin-apm--real-time-code-execution-monitoring-and-bug-tracking)

[![Latest Release](https://camo.githubusercontent.com/b03e85902d92681adc26004bdee05e3fd002bdd90260a415cb0f583ac96eba7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616c7a696e2d61706d2f70616c7a696e2d7068703f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/b03e85902d92681adc26004bdee05e3fd002bdd90260a415cb0f583ac96eba7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616c7a696e2d61706d2f70616c7a696e2d7068703f7374796c653d666f722d7468652d6261646765)[![Total Downloads (custom server)](https://camo.githubusercontent.com/4d08be0337b8d5c2795d24f8df0b6a606406099b18eb51b1229d79aff02d3608/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70616c7a696e2d61706d2f70616c7a696e2d7068703f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/4d08be0337b8d5c2795d24f8df0b6a606406099b18eb51b1229d79aff02d3608/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70616c7a696e2d61706d2f70616c7a696e2d7068703f7374796c653d666f722d7468652d6261646765)[![Packagist License](https://camo.githubusercontent.com/1ebe20c39323292b0fd16cfaaabd52bd0e4f1cc079da6b5af22a4c768e8c5a2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70616c7a696e2d61706d2f70616c7a696e2d7068703f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/1ebe20c39323292b0fd16cfaaabd52bd0e4f1cc079da6b5af22a4c768e8c5a2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70616c7a696e2d61706d2f70616c7a696e2d7068703f7374796c653d666f722d7468652d6261646765)[![GitHub last commit](https://camo.githubusercontent.com/95c1a31b8427bff913e5471559e10532eacae68a6c56d50d62fba1edc31c453f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f68692d666f6c6b732f6c6172612d6c656e733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/95c1a31b8427bff913e5471559e10532eacae68a6c56d50d62fba1edc31c453f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f68692d666f6c6b732f6c6172612d6c656e733f7374796c653d666f722d7468652d6261646765)[![GitHub Release Date](https://camo.githubusercontent.com/0015240482c6f1de6dadc0ed1266b5e3290e708eee43219175867f330f1f14ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f68692d666f6c6b732f6c6172612d6c656e733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/0015240482c6f1de6dadc0ed1266b5e3290e708eee43219175867f330f1f14ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f68692d666f6c6b732f6c6172612d6c656e733f7374796c653d666f722d7468652d6261646765)

Simple code execution monitoring and bug reporting for PHP developers.

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

[](#requirements)

- PHP &gt;= 7.2.0

Install
-------

[](#install)

Install the latest version of our package by:

```
composer require palzin-apm/palzin-php
```

Use
---

[](#use)

To start sending data to Palzin APM you need an INGESTION Key to create an instance of the `Configuration` class. You can obtain `PALZIN_APM_INGESTION_KEY` creating a new project in your [Palzin APM](https://www.palzin.app) dashboard.

```
use Palzin\Palzin;
use Palzin\Configuration;

$configuration = new Configuration('YOUR_PALZIN_APM_INGESTION_KEY');
$palzin = new Palzin($configuration);
```

All start with a `transaction`. Transaction represent an execution cycle and it can contains one or hundred of segments:

```
// Start an execution cycle with a transaction
$palzin->startTransaction($_SERVER['PATH_INFO']);
```

Use `addSegment` method to monitor a code block in your transaction:

```
$result = $palzin->addSegment(function ($segment) {
    // Do something here...
	return "Hello World!";
}, 'my-process');

echo $result; // this will print "Hello World!"
```

Palzin APM will monitor your code execution in real time and keep alerting you if something goes wrong.

Custom Transport
----------------

[](#custom-transport)

You can also set up custom transport class to transfer monitoring data from your server to Palzin APM in a personalized way.

The transport class needs to implement `\Palzin\Transports\TransportInterface`:

```
class CustomTransport implements \Palzin\Transports\TransportInterface
{
    protected $configuration;

    protected $queue = [];

    public function __constructor($configuration)
    {
        $this->configuration = $configuration;
    }

    public function addEntry(\Palzin\Models\Arrayable $entry)
    {
        // Add an \Palzin\Models\Arrayable entry in the queue.
        $this->queue[] = $entry;
    }

    public function flush()
    {
        // Performs data transfer.
        $handle = curl_init('https://www.palzin.app');
        curl_setopt($handle, CURLOPT_POST, 1);
        curl_setopt($handle, CURLOPT_HTTPHEADER, [
            'X-Palzin-Key: xxxxxxxxxxxx',
            'Content-Type: application/json',
            'Accept: application/json',
        ]);
        curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($this->queue));
        curl_exec($handle);
        curl_close($handle);
    }
}
```

Then you can set the new transport in the `Palzin` instance using a callback the will receive the current configuration state as parameter.

```
$palzin->setTransport(function ($configuration) {
    return new CustomTransport($configuration);
});
```

LICENSE
-------

[](#license)

This package is licensed under the [MIT](LICENSE) license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~211 days

Total

3

Last Release

643d ago

Major Versions

23.11.05 → 24.8.12024-08-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a264dfc5a2c34c13cc7acf7c4b609c96848416e847de577e6ebe9b392e9d465?d=identicon)[palzin](/maintainers/palzin)

---

Top Contributors

[![palzin](https://avatars.githubusercontent.com/u/116488348?v=4)](https://github.com/palzin "palzin (5 commits)")

---

Tags

phpmonitoringpalzin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ptrofimov/beanstalk_console

Admin console for Beanstalk queue server

1.3k124.7k](/packages/ptrofimov-beanstalk-console)[liuggio/statsd-php-client

Statsd (Object Oriented) client library for PHP

1153.9M9](/packages/liuggio-statsd-php-client)[inspector-apm/inspector-php

Inspector monitoring for PHP applications.

342.4M15](/packages/inspector-apm-inspector-php)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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