A simple Symfony bundle that provides system information endpoints.
Install the bundle with Composer:
composer require grayloon/stack-reporter-symfony
Add configuration to your config/packages/grayloon_stack_reporter.yaml
file:
grayloon_stack_reporter:
api_key: 'YO-KEY' # Your secure API key
- Register the bundle in
config/bundles.php
:
// config/bundles.php
return [
// other bundles...
Grayloon\StackReporter\StackReporterBundle::class => ['all' => true],
];
- Import the routes in your
config/routes.yaml
:
# config/routes.yaml
stack_reporter:
resource: '../vendor/grayloon/stack-reporter-symfony/src/Controller/'
type: attribute
For Symfony versions before 5.3, we'll load the controller directly, bypassing PHP 8 attributes.
# config/routes/stack_reporter.yaml
grayloon_stack_reporter_api_info:
path: /api/v1/stack-reporter
controller: Grayloon\StackReporter\Controller\ApiController::info
# config/routes.yaml
stack_reporter_routes:
resource: './routes/stack_reporter.yaml'
Once installed and configured, an endpoint is created to accept a post request with your site's key.
/api/v1/stack-reporter
- Symfony version
- PHP version
- Node version
{
"symfony_version": "6.4.0",
"php_version": "8.2.12",
"node_version": "22.14.0"
}
- PHP 7.2.5 or higher
- Symfony 5.0 or higher
This bundle is available under the MIT License.