Download the PHP package openmetrics-php/exposition-text without Composer
On this page you can find all versions of the php package openmetrics-php/exposition-text. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openmetrics-php/exposition-text
More information about openmetrics-php/exposition-text
Files in openmetrics-php/exposition-text
Download openmetrics-php/exposition-text
More information about openmetrics-php/exposition-text
Files in openmetrics-php/exposition-text
Vendor openmetrics-php
Package exposition-text
Short Description Implementation of the text exposition format of OpenMetrics
License MIT
Package exposition-text
Short Description Implementation of the text exposition format of OpenMetrics
License MIT
Please rate this library. Is it a good library?
Informations about the package exposition-text
OpenMetrics-PHP Exposition Text
Description
Implementation of the text exposition format of OpenMetrics.
This implementation supports the following metric types:
- Counter
- Gauge
- Histogram (calculated from a collection of gauges)
- Summary (calculated from a collection of gauges)
Please note: that the following content-type header is used for the HTTP response by default
Content-Type: application/openmetrics-text; charset=utf-8
as discussed here.
Supported PHP Versions
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
Installation
Usage
Create a collection of counters and respond it
See examples/counters.php.
Prints
Create a collection of gauges and respond it
See examples/gauges.php.
Prints
Create a histogram out of a gauge collection and respond it
See examples/histogram.php.
Prints
Create a summary out of a gauge collection and respond it
See examples/summary.php.
Prints
Contributing
Contributions are welcome and will be fully credited. Please see the contribution guide for details.
All versions of exposition-text with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2 || ^8.0
The package openmetrics-php/exposition-text contains the following files
Loading the files please wait ....