Download the PHP package maantje/charts without Composer
On this page you can find all versions of the php package maantje/charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package charts
Charts - SVG Chart Rendering
Charts is a zero-dependency PHP library for generating SVG charts. It enables easy creation of SVG-based charts directly from PHP, with no additional dependencies required.
Features
- Simple, intuitive API for chart creation
- Lightweight, with no external dependencies
- Supports various chart types: line charts, bar charts, stacked charts, and mixed charts
- Fully customizable and extendable
- Outputs pure SVG, allowing for:
- Embedding in PDFs, view example PDF report
Installation
To get started, install the package via composer:
Usage Examples
Below are some examples of the types of charts you can create using this library. Click on the links to view the source code for each example.
- Example Usage With mPDF
- Simple Line Chart
- Curved Line Chart
- Step Line Chart
- Area Line Chart
- Bar Chart
- Stacked Bar Chart
- Grouped Bar Chart
- Advanced Line Chart
- Advanced Bar Chart
- Mixed Chart
- Pie Chart
Example Usage With mPDF
📄 View PDF document
View source
Simple Line Chart
View source
Curved Line Chart
View source
Step line chart
View source
Area line chart
View source
Bar Chart
View source
Stacked Bar Chart
View source
Grouped Bar Chart
View source
Advanced Line Chart
View source
Advanced Bar Chart
View source
Mixed chart
View source
Pie chart
View source
Usage
Creating a Chart
You can create different types of charts using the provided classes. Below are examples of how to create a simple bar chart and a line chart.
Simple Bar Chart
Simple Line Chart
Annotations
You can add annotations to your charts for better visualization.
License
The MIT License (MIT). Please see License File for more information.