An open API service indexing awesome lists of open source software.

https://github.com/brainfoolong/php-svg-charts

Generate SVG image charts to be able to use it in web and pdf at the same time.
https://github.com/brainfoolong/php-svg-charts

mpdf pdf php svg svg-charts

Last synced: 5 months ago
JSON representation

Generate SVG image charts to be able to use it in web and pdf at the same time.

Awesome Lists containing this project

README

          

# PHP SVG Charts (Beta)
> Generate SVG image charts in PHP with ease.

[![PHP SVG Charts Tests](https://github.com/brainfoolong/php-svg-charts/actions/workflows/tests.yml/badge.svg)](https://github.com/brainfoolong/php-svg-charts/actions/workflows/tests.yml)

![Examples](docs/images/examples.webp)

### Features

- Different types of charts ([suggest and help to integrate more](https://github.com/brainfoolong/php-svg-charts/issues))
- RAW SVG output
- PHP generation, no JS or Browser needed (Makes it easy to use cronjobs/automations)
- Extremely customizable in output, design and data representation. Even add custom attributes so you can write your own frontend JS code to provide mouseover tooltips for example

### Requirements
Basic PHP 8.1+ with no special extensions, runs everywhere where basic PHP can be installed.

### Installation
```
composer require brainfoolong/svg-charts
```

### Usage / Documentation

Just head to https://brainfoolong.github.io/php-svg-charts/