Download the PHP package ridwan/laravel-pdf-charts without Composer

On this page you can find all versions of the php package ridwan/laravel-pdf-charts. 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 laravel-pdf-charts

Laravel PDF Charts

Generate beautiful, server-side chart images and PDFs in Laravel using Chart.js-style configurations โ€” without requiring a browser or external chart service in your Laravel application.


โœจ Features


๐Ÿ“ฆ Installation

Install the package using Composer:

Publish Configuration

Publishing the configuration file is optional:

After publishing, you can customize the package configuration according to your application's requirements.


๐Ÿš€ Quick Start

Import the Chart facade:

Then create a chart using a Chart.js-style configuration:

The generated chart is returned as binary output, which you can use in your Laravel application.


๐Ÿ“Š Supported Charts

The package supports the following chart types:

Type Description
bar Vertical or horizontal bars for comparing values
line Connected points for displaying trends
pie Circular segments representing parts of a whole
doughnut Pie chart with a cut-out center
radar Multi-axis spider/web chart for comparing variables
polarArea Circular segments where angle and radius represent values
scatter Individual (x, y) points for correlation or distribution
bubble Scatter-style chart with radius representing a third dimension

You can also create mixed charts by specifying different chart types for individual datasets.


๐Ÿ“ˆ Chart Examples

Bar Chart


Line Chart


Pie Chart


Doughnut Chart


Radar Chart


Polar Area Chart


Scatter Chart

Scatter charts use objects containing x and y values:


Bubble Chart

Bubble charts support an additional r value representing the bubble radius:


๐Ÿ› ๏ธ Fluent API

Customize the generated chart using the fluent API:

Available Options

Method Description
width(800) Set chart width
height(400) Set chart height
format('png') Set output format
backgroundColor('white') Set chart background
devicePixelRatio(2) Configure rendering pixel density
version('4') Specify Chart.js version
render() Generate the chart

Supported Formats

For example:


๐Ÿ”ข Base64 & Data URI

Generate a Base64 representation of the chart:

By default, the result can be returned as a Data URI.

If you only need the raw Base64 content:

This can be useful when embedding charts into HTML, emails, APIs, or other documents.


๐Ÿ’พ Save Charts to Disk

Save the generated chart directly to a file:

You can also select the desired format before saving:


๐Ÿ—๏ธ How It Works

The package follows a simple rendering flow:

The goal is to keep chart generation inside your Laravel application while exposing a simple PHP API.


๐Ÿ“œ License

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

See the LICENSE file for more information.


โญ Support

If this package helps you build better Laravel applications, consider giving the repository a โญ on GitHub.

Your feedback, issues, and contributions are also welcome.


๐Ÿ“ฆ Package

Package: ridwan/laravel-pdf-charts

Purpose: Server-side chart generation for Laravel

Output formats: PNG ยท SVG ยท WebP ยท PDF

Chart configuration: Chart.js-style

License: MIT


All versions of laravel-pdf-charts with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
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 ridwan/laravel-pdf-charts contains the following files

Loading the files please wait ...