PHPackages                             jcsaunders/laravel-echarts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jcsaunders/laravel-echarts

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jcsaunders/laravel-echarts
==========================

Create an image from Apache ECharts.

v1.0.0(2y ago)013MITPHP

Since Apr 21Pushed 2y agoCompare

[ Source](https://github.com/jcsaunders/laravel-echarts)[ Packagist](https://packagist.org/packages/jcsaunders/laravel-echarts)[ RSS](/packages/jcsaunders-laravel-echarts/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Laravel Echarts
===============

[](#laravel-echarts)

Server-side rendering of [Apache ECharts](https://echarts.apache.org/) with Laravel and Node.js. Render chart images as png, jpg, pdf or svg to storage.

Requirements
------------

[](#requirements)

- Node.js and npm

Installation
------------

[](#installation)

### Install package

[](#install-package)

```
composer require codebarista/laravel-echarts
```

### Install node modules

[](#install-node-modules)

```
php artisan codebarista:node-echarts install
```

For updates it would be a good idea to add the command to the root composer.json.

```
{
    "scripts": {
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
            "@php artisan codebarista:node-echarts install"
        ]
    },
}
```

### Publish config (optional)

[](#publish-config-optional)

```
php artisan vendor:publish --tag="config" --provider="Codebarista\LaravelEcharts\EchartsServiceProvider"
```

### Install pngcrush (optional)

[](#install-pngcrush-optional)

-

```
apt install pngcrush
```

Usage
-----

[](#usage)

### Store Chart Image

[](#store-chart-image)

```
use Codebarista\LaravelEcharts\Actions\StoreChartImage;

// ...

StoreChartImage::make()->handle([
    'title' => [
        'text' => 'Basic Bar Chart',
    ],
    'xAxis' => [
        'type' => 'category',
        'data' => ['Shirts', 'Cardigans', 'Chiffons', 'Pants', 'Heels', 'Socks'],
    ],
    'yAxis' => [
        'type' => 'value',
    ],
    'series' => [
        [
            'type' => 'bar',
            'data' => [5, 20, 36, 10, 10, 20],
        ],
    ],
]);
```

### Config

[](#config)

Overwrite the default attributes from config file:

```
$action = StoreChartImage::make()
    ->baseOptionPath(resource_path('echarts/base-option.mjs')) // base chart to be merged
    ->mimeType(MimeTypes::PNG) // PNG, JPG, PDF, SVG
    ->optimize(true) // optimize with pngcrush
    ->filePath('app/public') // storage path
    ->fileName('simple-bar-chart') // w/o extension
    ->width(600) // image width
    ->height(600); // image height

$action->handle(options: [...]);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

803d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4897379?v=4)[Christopher Saunders](/maintainers/jcsaunders)[@jcsaunders](https://github.com/jcsaunders)

---

Top Contributors

[![codebarista](https://avatars.githubusercontent.com/u/19738505?v=4)](https://github.com/codebarista "codebarista (9 commits)")[![jcsaunders](https://avatars.githubusercontent.com/u/4897379?v=4)](https://github.com/jcsaunders "jcsaunders (3 commits)")

---

Tags

laravelecharts

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jcsaunders-laravel-echarts/health.svg)

```
[![Health](https://phpackages.com/badges/jcsaunders-laravel-echarts/health.svg)](https://phpackages.com/packages/jcsaunders-laravel-echarts)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

8015.8k](/packages/firefly-iii-data-importer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k30](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
