PHPackages                             vairogs/spx-profiler - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. vairogs/spx-profiler

Abandoned → [valksor/php-spx-profiler](/?search=valksor%2Fphp-spx-profiler)Library[Debugging &amp; Profiling](/categories/debugging)

vairogs/spx-profiler
====================

A Symfony profiler data collector for the SPX PHP profiler, which collects and displays profiling data for PHP applications

00PHP

Since May 24Pushed 11mo agoCompare

[ Source](https://github.com/vairogs/spx-profiler)[ Packagist](https://packagist.org/packages/vairogs/spx-profiler)[ RSS](/packages/vairogs-spx-profiler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Vairogs Component: SpxProfiler
==============================

[](#vairogs-component-spxprofiler)

A Symfony profiler data collector for the SPX PHP profiler, which collects and displays profiling data for PHP applications.

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

[](#installation)

Install the package via Composer:

```
composer require vairogs/spx-profiler
```

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

[](#requirements)

- PHP 8.4 or higher
- SPX PHP extension installed

Usage
-----

[](#usage)

The SpxProfiler component provides a data collector for the Symfony web profiler that integrates with the SPX PHP profiler. It allows you to view detailed profiling information for your PHP applications directly in the Symfony web profiler.

### Basic Setup

[](#basic-setup)

1. Install the SPX PHP extension ()
2. Enable the extension in your php.ini:

```
extension=spx.so
spx.http_enabled=1
spx.http_key=your_secret_key
```

3. Register the component in your Symfony application:

```
// config/bundles.php
return [
    // ...
    Vairogs\Bundle\VairogsBundle::class => ['all' => true],
    // ...
];
```

4. Configure the component in your Symfony application:

```
# config/packages/vairogs.yaml
vairogs:
    components:
        spx_profiler: ~
```

### Viewing Profiling Data

[](#viewing-profiling-data)

Once the component is installed and configured, you can view profiling data in the Symfony web profiler:

1. Enable SPX profiling for a request by adding the SPX\_KEY parameter to the URL or setting the SPX\_ENABLED cookie to 1
2. Make a request to your application
3. Open the Symfony web profiler for that request
4. Click on the SPX tab to view the profiling data

### Features

[](#features)

The SpxProfiler component provides the following features:

- Integration with the Symfony web profiler
- Display of SPX profiling data in a dedicated tab
- Automatic matching of SPX reports with Symfony profiler requests
- Display of detailed metrics including:
    - Wall time
    - Memory usage
    - Enabled metrics
    - Recorded calls
- Links to the full SPX report for more detailed analysis

### Configuration Options

[](#configuration-options)

The SPX PHP extension provides several configuration options that can be set in your php.ini:

- `spx.http_enabled`: Enable HTTP interface (default: 0)
- `spx.http_key`: Secret key for HTTP interface
- `spx.http_ip_whitelist`: IP whitelist for HTTP interface
- `spx.data_dir`: Directory for SPX data files (default: /tmp/spx)

License
-------

[](#license)

This package is licensed under the [BSD-3-Clause License](LICENSE).

About Vairogs
-------------

[](#about-vairogs)

This package is part of the [vairogs/vairogs](https://github.com/vairogs/vairogs) project - a comprehensive PHP library and Symfony bundle that provides a collection of utilities, components, and integrations for Symfony applications.

The main project includes:

- Various utility functions and components
- Doctrine ORM tools and extensions
- API Platform integrations
- Symfony bundle for easy configuration
- And much more

If you find this SpxProfiler component useful, you might want to check out the full Vairogs project for additional tools and utilities that can enhance your Symfony application development.

To install the complete package:

```
composer require vairogs/vairogs
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vairogs-spx-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/vairogs-spx-profiler/health.svg)](https://phpackages.com/packages/vairogs-spx-profiler)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M912](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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