https://github.com/saschahemleb/php-grafana-api-client
A client for the Grafana API, written in PHP
https://github.com/saschahemleb/php-grafana-api-client
composer grafana php
Last synced: about 1 year ago
JSON representation
A client for the Grafana API, written in PHP
- Host: GitHub
- URL: https://github.com/saschahemleb/php-grafana-api-client
- Owner: saschahemleb
- Created: 2022-01-22T21:34:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T07:27:46.000Z (almost 3 years ago)
- Last Synced: 2025-04-08T18:12:14.032Z (over 1 year ago)
- Topics: composer, grafana, php
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Grafana API Client
A client for the Grafana API, written in PHP.
## Project Status
This project is still in an alpha state; not all API endpoints are implemented yet,
and the public package API is subject to major changes.
## Installation
Via Composer
```bash
$ composer require saschahemleb/php-grafana-api-client
```
### Framework Integration
I've written a bridge package for Laravel, providing a facade and a connection manager for controlling multiple grafana instances.
You can find it [here](//github.com/saschahemleb/laravel-grafana).
## Example
```php
use Saschahemleb\PhpGrafanaApiClient\Client;
use Saschahemleb\PhpGrafanaApiClient\Authentication;
$client = Client::create(
new Uri('http://localhost:3000/'), // url to grafana
Authentication::basicAuth('admin', 'admin')
);
echo $client->other()->health()->getVersion();
// 8.3.6
```