PHPackages                             codebarista/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. codebarista/laravel-echarts

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

codebarista/laravel-echarts
===========================

Create an image from Apache ECharts.

1.1.0(2y ago)2971MITPHP

Since Feb 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/codebarista/laravel-echarts)[ Packagist](https://packagist.org/packages/codebarista/laravel-echarts)[ RSS](/packages/codebarista-laravel-echarts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~5 days

Total

5

Last Release

790d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0c255f53a64088da924587fe79d03053cf4aac742dbb573dd3481171e020682?d=identicon)[codebarista](/maintainers/codebarista)

---

Top Contributors

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

---

Tags

echartslaravelphplaravelecharts

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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