Download the PHP package derafu/chart without Composer

On this page you can find all versions of the php package derafu/chart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package chart

Derafu: Chart - PHP Chart Library

GitHub last commit CI Workflow GitHub code size in bytes GitHub Issues Total Downloads Monthly Downloads

Derafu Chart is a PHP library for creating diverse charts. The library is designed to generate charts entirely in PHP using GD or other renderers. It supports a variety of chart types and is easy to extend.

Features

Installation

You can install the library using Composer:

Usage

You can choose the style that best suits your coding preferences or project requirements:

Both approaches allow flexibility depending on whether you prefer array-based configuration or object-oriented method chaining.

Creating a Chart with the Factory

Here’s how to create a simple bar chart using the ChartFactory:

Creating a Chart with Method Chaining

Here’s how to create the same bar chart using method chaining:

Chart Types

Here is an overview of the chart types supported, with examples.

1. Area Chart

Displays continuous data trends over time or categories. Ideal for showing volume and trends.

2. Bar Chart

Shows discrete data comparisons using vertical bars. Perfect for categorical comparisons.

3. Bubble Chart

Highlights relationships and distributions. Bubble size represents a third dimension.

4. Horizontal Bar Chart

Provides an alternative for displaying bar data, especially useful when labels are long.

Text Output Example:

5. Pie Chart

Represents proportions in a dataset. Great for visualizing percentages.

6. Radar Chart

Compares multiple variables across multiple dimensions. Ideal for skill or performance analysis.

7. Scatter Plot

Shows relationships between two variables using points. Commonly used for distribution analysis.

8. Waterfall Chart

Visualizes cumulative changes in value over a sequence. Useful for profit and loss analysis.

Roadmap

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This package is open-sourced software licensed under the MIT license.


Happy charting!


All versions of chart with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-gd Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package derafu/chart contains the following files

Loading the files please wait ....