Stack Reporter
This module provides a secure API endpoint to report your website's technology stack, including Drupal, PHP, and Node.js versions. It is easily configurable through the Drupal admin interface and protected by a secure API key.
Stack Reporter is a Drupal module that exposes a secure API endpoint to report your site's technology stack information.
Features
- Secure API endpoint protected by configurable API key
- Reports Drupal, PHP, and Node.js versions
- Easy configuration through Drupal's admin interface
Installation
-
Download and install the module using Composer:
composer require drupal/stack_reporter
-
Enable the module via Drush:
drush en stack_reporter
Or through the Drupal admin interface at
/admin/modules.
Configuration
- Navigate to
/admin/config/system/stack-reporter - Enter your API key and other site information
- Select the frameworks and libraries used in your site
- Save the configuration
Usage
API Endpoint
The module exposes an API endpoint at:
/api/v1/stack-reporter
Authentication
Access requires an API key that can be provided in either:
- Query parameter:
?apikey=your_api_key - JSON request body:
{"apikey": "your_api_key"}
Sample Response
{
"drupal_version": "10.1.2",
"php_version": "8.2.7",
"node_version": "18.16.0",
}
Requirements
- Drupal 9.4 or higher
- PHP 8.0 or higher
Troubleshooting
API Key Authentication Issues
If you're having trouble authenticating:
- Verify the API key in the module configuration
- Check that you're using the correct parameter name (
apikey) - Try both request methods (query parameter and JSON body)
Node.js Version Detection
Node.js detection requires:
- The
exec()function to be enabled in PHP - Node.js to be installed and accessible in the server environment
Maintainer
License
This project is licensed under the GPL v2 or later.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.