2a/symfony-performance-analyzer
update package name
Release Date: May 30, 2025 (12:00 PM CEST)
Introducing the Symfony Performance Analyzer Bundle, a toolkit to optimize Symfony applications with performance metrics, N+1 query detection, AI-driven recommendations, and extensible analyzers. Learn more at https://symfony-performance-analyzer.example.com.
CodeAnalyzer.AiRecommendationService using AI_API_KEY, AI_ENDPOINT, and AI_MODEL./performance-dashboard with local Chart.js (no CDN).ReportGenerator.AnalyzerInterface and aa_performance_analyzer.analyzer tag.composer remove with PurgePackageCommand.composer require aa/performance-analyzer
Enable in config/bundles.php:
return [
AA\PerformanceAnalyzer\PerformanceAnalyzerBundle::class => ['all' => true],
];
Install assets:
php bin/console assets:install --symlink
Configure in config/packages/aa_performance_analyzer.yaml:
aa_performance_analyzer:
enabled: true
base_template: '[@PerformanceAnalyzer](https://github.com/PerformanceAnalyzer)/dashboard.html.twig'
collectors:
database: true
memory: true
http: true
cache: true
ai_integration:
enabled: false
thresholds:
slow_query_time: 100
memory_limit_warning: 128
Add AI settings to .env:
AI_API_KEY=your-api-key-here
AI_ENDPOINT=https://api.openai.com/v1/chat/completions
AI_MODEL=gpt-4-turbo
Analyze performance:
php bin/console aa:analyze:performance --output=json
View dashboard at /performance-dashboard.
CodeAnalyzer’s analyze() is a placeholder; use analyzeFile() for file analysis.See README for contributing guidelines, including forking and pull requests.
MIT License. See LICENSE.
How can I help you explore Laravel packages today?