dev-master
9999999-dev https://github.com/aptarus/promClientPhpPrometheus client library for PHP.
MIT
The Requires
- ext-pdo *
- ext-pdo_sqlite *
- php ~5.6|~7.0
The Development Requires
by Kevin Lyda
aptarus prometheus promclientphp
Prometheus client library for PHP.
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
This library allows users to record and export stats about a program in a way that Prometheus can make use of. Statistics are stored locally in the filesystem using sqlite; no additional service is required to record the statistics., (*2)
Note that this is likely only really useful for a PHP site with low usage. Once you get more than a 2 or 3 QPS you're likely looking at needing a different library for this., (*3)
Via Composer, (*4)
``` bash $ composer require aptarus/promClientPhp, (*5)
## Usage Add this to `composer.json`: ```json { "repositories": [ { "type": "vcs", "url": "https://github.com/aptarus/promClientPhp.git" } ], "require": { "php" : "~5.5|~7.0", "aptarus/promClientPhp": "dev-master" } }
Client:, (*6)
``` php, (*7)
Endpoint: ``` php # TODO
Prometheus config:, (*8)
# TODO
Please see CHANGELOG for more information what has changed recently., (*9)
``` bash composer test, (*10)
### Test prerequisites Need to install the following on Ubuntu for testing to work: ```bash sudo apt-get install php-codesniffer phpunit php5-sqlite
Please see CONTRIBUTING and CONDUCT for details., (*11)
This package is based on the PHP league's skeleton. From time to time it's not a bad idea to try merging in the skeleton project in case there are new bits of the php ecosystem this project might benefit from. To do this just run:, (*12)
git fetch git@github.com:thephpleague/skeleton.git
If you discover any security related issues, please email kevin.lyda@aptarus.com instead of using the issue tracker., (*13)
The MIT License (MIT). Please see License File for more information., (*14)
Prometheus client library for PHP.
MIT
aptarus prometheus promclientphp