aeatech / cli-snapshot-profiler-newrelic-bundle
CLI snapshot profiler newrelic bundle for symfony (production ready)
Package info
github.com/AEATech/cli-snapshot-profiler-newrelic-bundle
Type:symfony-bundle
pkg:composer/aeatech/cli-snapshot-profiler-newrelic-bundle
1.0.0
2025-12-23 12:29 UTC
Requires
- php: >=8.2
- ext-newrelic: *
- aeatech/cli-snapshot-profiler-event-subscriber: ^1.0
- aeatech/snapshot-profiler-newrelic: ^1.0
- symfony/framework-bundle: ^6.4 || ^7.4
- symfony/yaml: ^6.4 || ^7.4
Requires (Dev)
- mockery/mockery: ^1.6
- nyholm/symfony-bundle-test: ^3.1
- phpunit/phpunit: ^11.5
- roave/security-advisories: dev-master
- symfony/test-pack: ^1.2
This package is not auto-updated.
Last update: 2026-03-18 11:57:47 UTC
README
The package contains symfony bundle to profile CLI applications with newrelic. It can be used for production profiling.
System requirements:
- PHP >= 8.2
- ext-newrelic (tested on 12.1+)
Installation (Composer):
composer require aeatech/cli-snapshot-profiler-newrelic-bundle
Auto installation
You can install it with custom recipe.
composer config extra.symfony.allow-contrib true
composer config --json --merge extra.symfony.endpoint '["https://api.github.com/repos/AEATech/recipes/contents/index.json?ref=main", "flex://defaults"]'
composer require aeatech/cli-snapshot-profiler-newrelic-bundle
Manual installation
Enable bundle in dev and prod env.
// config/bundles.php
return [
// ...
AEATech\CLISnapshotProfilerNewrelicBundle\AEATechCLISnapshotProfilerNewrelicBundle::class => ['dev' => true, 'prod' => true],
// ...
];
Configuration
Symfony Flex generates a default configuration in config/packages/aea_tech_cli_snapshot_profiler_newrelic.yaml
aea_tech_cli_snapshot_profiler_newrelic:
# Enable/Disable profiling
is_profiling_enabled: false
# newrelic configuration
newrelic:
app_name: '%env(string:AEA_TECH_CLI_SNAPSHOT_PROFILER_NEWRELIC_APP_NAME)%'
license: '%env(string:AEA_TECH_CLI_SNAPSHOT_PROFILER_NEWRELIC_LICENSE)%'
###
# Event matched configuration - START
###
event_matcher:
# Enable/Disable all routes profiling
is_profile_all_commands: false
# Enable profile by command name (\AEATech\CLISnapshotProfilerEventSubscriber\EventMatcher\CommandEventMatcher)
command:
is_enabled: false
name_list:
- 'app:command'
###
# Event matched configuration - END
###
License
MIT License. See LICENSE for details.