PHPackages                             marineusde/larapex-charts - 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. marineusde/larapex-charts

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

marineusde/larapex-charts
=========================

Package to provide easy api to build apex charts on Laravel

1.5.1(1y ago)1214.2k—9%4MITPHPPHP ^8.2

Since Jan 31Pushed 1y agoCompare

[ Source](https://github.com/marineusde/larapex-charts)[ Packagist](https://packagist.org/packages/marineusde/larapex-charts)[ Docs](https://github.com/marineusde/larapex-charts)[ RSS](/packages/marineusde-larapex-charts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (44)Used By (0)

Larapex Charts
==============

[](#larapex-charts)

A Laravel wrapper for apex charts library.

Why should I use a fork?
------------------------

[](#why-should-i-use-a-fork)

- The maintainer of the original package is not really active. To many developers are waiting for a new release. I will try to keep this package up to date.
- Using phpstan and cs-fixer for better code
- I added more options for xaxis, yaxis, grid options chart animations with real classes and not just arrays

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

[](#installation)

Use composer.

```
composer require marineusde/larapex-charts
```

Usage
-----

[](#usage)

### Basic example

[](#basic-example)

In your controller add:

```
$chart = (new LarapexChart)->setTitle('Posts')
                   ->setDataset([150, 120])
                   ->setLabels(['Published', 'No Published']);
```

Remember to import the Facade to your controller with

```
use marineusde\LarapexCharts\Facades\LarapexChart;
```

Or importing the LarapexChart class:

```
use marineusde\LarapexCharts\LarapexChart;
```

Then in your view (Blade file) add:

```

     Chart Sample

     {!! $chart->container() !!}

     {{ $chart->script() }}

```

The $chart must be an object of LarapexChart, not the controller or class that create it.

### More complex example

[](#more-complex-example)

```
$chart = (new AreaChart)
        ->setTitle('Total Users Monthly')
        ->setSubtitle('From January to March')
        ->setXAxisOptions(new XAxisOption([
            'Jan', 'Feb', 'Mar'
        ]))
        ->setDataset([
            [
                'name'  =>  'Active Users',
                'data'  =>  [250, 700, 1200]
            ]
        ]);
```

You can create a variety of charts including: Line, Area, Bar, Horizontal Bar, Heatmap, pie, donut and Radialbar.

### Better using with vite

[](#better-using-with-vite)

Its better to use vite (or other plugins of this kind) for your projects, cause you cant get problems with version conflicts of apex charts:

- install npm
- install vite and vite-plugin-static-copy with npm
- copy the code in the vite.config.js

```
import {defineConfig, normalizePath} from 'vite';
import { viteStaticCopy } from "vite-plugin-static-copy";

export default defineConfig({
    plugins: [
        viteStaticCopy({
            targets: [
                {
                    src: 'node_modules/apexcharts/dist/apexcharts.js',
                    dest: 'js'
                }
            ]
        })
    ]
});

```

run: npm run build

now you can use the js file in your blade files:

```

```

Contributing
------------

[](#contributing)

The author is Henning Zimmermann.

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance46

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~23 days

Recently: every ~63 days

Total

16

Last Release

407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52a93ccd2350aabe04dbcd2d4e35a9ae24fc84456dc34e2e0497b0660115f87d?d=identicon)[marineusde](/maintainers/marineusde)

---

Top Contributors

[![marineusde](https://avatars.githubusercontent.com/u/105713989?v=4)](https://github.com/marineusde "marineusde (58 commits)")[![ArielMejiaDev](https://avatars.githubusercontent.com/u/31971074?v=4)](https://github.com/ArielMejiaDev "ArielMejiaDev (47 commits)")[![pandigresik](https://avatars.githubusercontent.com/u/1853475?v=4)](https://github.com/pandigresik "pandigresik (3 commits)")[![almirb](https://avatars.githubusercontent.com/u/1752962?v=4)](https://github.com/almirb "almirb (2 commits)")[![jamesmills](https://avatars.githubusercontent.com/u/557096?v=4)](https://github.com/jamesmills "jamesmills (2 commits)")[![jeffreyvanhees](https://avatars.githubusercontent.com/u/8754630?v=4)](https://github.com/jeffreyvanhees "jeffreyvanhees (2 commits)")[![chimit](https://avatars.githubusercontent.com/u/839349?v=4)](https://github.com/chimit "chimit (1 commits)")[![bensonarafat](https://avatars.githubusercontent.com/u/12992332?v=4)](https://github.com/bensonarafat "bensonarafat (1 commits)")[![Tschucki](https://avatars.githubusercontent.com/u/43211841?v=4)](https://github.com/Tschucki "Tschucki (1 commits)")[![umairparacha00](https://avatars.githubusercontent.com/u/64344369?v=4)](https://github.com/umairparacha00 "umairparacha00 (1 commits)")

---

Tags

chartsapexchartslarapex

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/marineusde-larapex-charts/health.svg)

```
[![Health](https://phpackages.com/badges/marineusde-larapex-charts/health.svg)](https://phpackages.com/packages/marineusde-larapex-charts)
```

###  Alternatives

[arielmejiadev/larapex-charts

Package to provide easy api to build apex charts on Laravel

302445.7k](/packages/arielmejiadev-larapex-charts)[akaunting/laravel-apexcharts

ApexCharts package for Laravel

84288.3k2](/packages/akaunting-laravel-apexcharts)[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3772.3M5](/packages/ghunti-highcharts-php)[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[hisune/echarts-php

A php wrapper for echarts javascript libraries

327201.9k5](/packages/hisune-echarts-php)[icehouse-ventures/laravel-chartjs

Simple package to facilitate and automate the use of charts in Laravel using the Chart.js library

117186.4k](/packages/icehouse-ventures-laravel-chartjs)

PHPackages © 2026

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