https://github.com/mindscreen/t3ext-json_reports
https://github.com/mindscreen/t3ext-json_reports
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mindscreen/t3ext-json_reports
- Owner: mindscreen
- License: gpl-3.0
- Created: 2017-06-07T11:43:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T12:20:56.000Z (over 4 years ago)
- Last Synced: 2025-03-29T12:51:19.678Z (about 1 year ago)
- Language: PHP
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.gnu.org/licenses/gpl-3.0)
![Packagist][packagist]
[packagist]: https://img.shields.io/packagist/v/mindscreen/json-reports.svg
# JSON Reports for TYPO3
This TYPO3 extension adds a CLI command and an HTTP endpoint that outputs the reports that you can find in the reports
module as JSON. The JSON output can be used in monitoring or alerting systems. The HTTP endpoint can be protected via
IP restriction.
## CLI command
You can access the reports JSON via CLI with the following command:
```typo3/cli_dispatch.phpsh extbase reports:list```
## HTTP endpoint
In order to use the HTTP endpoint you have to configure the allowed IP addresses via the following setting:
```$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['json_reports']['allowedIpAddresses'] = '';```
Clients that match the allowed IP address range can access the reports JSON via the following URL:
```https://my.domain/?eID=json_reports```
If the reports contain warnings or errors (or there are errors during report generation), a status 500 is returned.