PHPackages                             acseo/profiler-cli - 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. acseo/profiler-cli

ActiveSymfony-bundle[Debugging &amp; Profiling](/categories/debugging)

acseo/profiler-cli
==================

Symfony CLI command for interacting with the Symfony Profiler, displaying and exporting HTTP requests as curl commands.

15PHP

Since Sep 10Pushed 1y ago3 watchersCompare

[ Source](https://github.com/acseo/ProfilerCliBundle)[ Packagist](https://packagist.org/packages/acseo/profiler-cli)[ RSS](/packages/acseo-profiler-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony Profiler CLI Command
============================

[](#symfony-profiler-cli-command)

[![ProfilerCliBundle](https://camo.githubusercontent.com/d0cec94c73382cfd19bb69c8e1dc29898e3fb90dab88d74ccaa016a0b363a8fd/68747470733a2f2f736f6369616c6966792e6769742e63692f616373656f2f50726f66696c6572436c6942756e646c652f696d6167653f6465736372697074696f6e3d3126666f6e743d496e746572266c616e67756167653d31266e616d653d31266f776e65723d31267374617267617a6572733d31267468656d653d4175746f)](https://camo.githubusercontent.com/d0cec94c73382cfd19bb69c8e1dc29898e3fb90dab88d74ccaa016a0b363a8fd/68747470733a2f2f736f6369616c6966792e6769742e63692f616373656f2f50726f66696c6572436c6942756e646c652f696d6167653f6465736372697074696f6e3d3126666f6e743d496e746572266c616e67756167653d31266e616d653d31266f776e65723d31267374617267617a6572733d31267468656d653d4175746f)

This Symfony bundle provides a CLI command that interacts with the Symfony Profiler. It allows users to display the details of profiler tokens, export `curl` commands for HTTP requests, and interact with profiler data in an efficient and flexible way.

Features
--------

[](#features)

- List recent profiler tokens with detailed information (IP, URL, HTTP method, etc.).
- Display the details of a specific token, including headers, request body, and the generated `curl` command.
- Export the `curl` command for individual tokens or for all retrieved tokens.
- Interact with an easy-to-use interactive menu, or use command-line options for direct access.

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

[](#requirements)

- PHP 7.4 or higher
- Symfony 5.x or 6.x
- Symfony Profiler enabled

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

[](#installation)

1. Install the bundle via composer:

```
composer require acseo/profiler-cli
```

2. Enable the bundle in your bundles.php:

```
return [
    // Other bundles
    ACSEO\ProfilerCliBundle\ProfilerCliBundle::class => ['dev' => true],
];
```

3. Ensure the Symfony Profiler is enabled in your environment by checking config/packages/dev/web\_profiler.yaml:

```
web_profiler:
    toolbar: true
    intercept_redirects: false
```

Usage
-----

[](#usage)

### List Profiler Tokens

[](#list-profiler-tokens)

By default, the command lists the most recent profiler tokens, displaying their token, IP address, HTTP method, URL, and request time.

```
php bin/console acseo:profiler-cli
```

You can filter the tokens by using the following options:

- `--ip`: Filter by IP address
- `--url`: Filter by URL
- `--method`: Filter by HTTP method (e.g., `GET`, `POST`)
- `--limit`: Specify the number of tokens to retrieve (default is `10`)
- `--start`: Specify a start date in `Y-m-d H:i:s` format
- `--end`: Specify an end date in `Y-m-d H:i:s` format

Example:

```
php bin/console acseo:profiler-cli --limit=5 --method=POST
```

### Display Token Details

[](#display-token-details)

You can directly display the details of a specific token by passing the `--token` option:

```
php bin/console acseo:profiler-cli --token=abc123
```

This will display the HTTP request information, including headers, request body, and the generated `curl` command.

### Export curl Command

[](#export-curl-command)

To export the `curl` command for a specific token, use both the `--token` and `--export` options together:

```
php bin/console acseo:profiler-cli --token=abc123 --export
```

This will generate a file in the format `curl_YmdHis-abc123.txt` containing the `curl` command.

You can also export the `curl` commands for all retrieved tokens:

```
php bin/console acseo:profiler-cli --export
```

### Interactive Menu

[](#interactive-menu)

When running the command without options, an interactive menu is displayed. You can navigate the menu using the following keys:

```
m: Redisplay the token list
d: Display the details of a specific token
e: Export the curl command for the selected token
q: Quit the program

```

Example Use Cases
-----------------

[](#example-use-cases)

- Automated Testing: Use the generated curl commands to replay HTTP requests and test API behavior.
- Debugging: Quickly fetch request headers and bodies for analysis.
- Profiling: Filter and analyze specific requests by IP, URL, or HTTP method.

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

[](#contributing)

We welcome contributions! Please submit a pull request or open an issue for discussion. Make sure to follow the existing coding style and include unit tests where applicable.

License
-------

[](#license)

This bundle is licensed under the MIT License. See the LICENSE file for details.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity17

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/a21f9d389ad9d714e1e84226a4b2def0417c9bfec60ea43c22104a8e93a654da?d=identicon)[npotier](/maintainers/npotier)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/acseo-profiler-cli/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

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

PHP Debugbar integration for Laravel

19.1k662.9k29](/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)
