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

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

insol/larapex-charts
====================

Package to provide easy api to build apex charts on Laravel

4.0.0(4y ago)01941MITPHPPHP ^7.4|^8.0

Since Jan 14Pushed 3y agoCompare

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

READMEChangelogDependencies (3)Versions (15)Used By (0)

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

[](#larapex-charts)

[![MadeWithLaravel.com shield](https://camo.githubusercontent.com/83d4e693a18b08c17348fd07819bb4befd3613683298d1cec54a4a3752077160/68747470733a2f2f6d616465776974686c61726176656c2e636f6d2f73746f726167652f7265706f2d736869656c64732f323137352d736869656c642e737667)](https://madewithlaravel.com/p/larapex-charts/shield-link)

[![Latest Stable Version](https://camo.githubusercontent.com/4791811665be12ed563fddfa9cd434880f1c2187f2938520e7edfd27e7629548/68747470733a2f2f706f7365722e707567782e6f72672f617269656c6d656a69616465762f6c6172617065782d6368617274732f762f737461626c65)](https://packagist.org/packages/arielmejiadev/larapex-charts)

[![Total Downloads](https://camo.githubusercontent.com/3622b1e0518e004ba468222d0176fb9876f310a9a3f24c09902f588b432ff666/68747470733a2f2f706f7365722e707567782e6f72672f617269656c6d656a69616465762f6c6172617065782d6368617274732f646f776e6c6f616473)](https://packagist.org/packages/arielmejiadev/larapex-charts)

[![GitHub Actions](https://github.com/arielmejiadev/larapex-charts/actions/workflows/main.yml/badge.svg)](https://github.com/arielmejiadev/larapex-charts/actions/workflows/main.yml/badge.svg)

[![License](https://camo.githubusercontent.com/6a9a43f266f3d2d003b70f1d122eef8de84663de6c707bf7fd0909386d04910e/68747470733a2f2f706f7365722e707567782e6f72672f617269656c6d656a69616465762f6c6172617065782d6368617274732f6c6963656e7365)](https://packagist.org/packages/arielmejiadev/larapex-charts)

A Laravel wrapper for apex charts library Check the documentation on: [Larapex Chart Docs](https://larapex-charts.netlify.app/).

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

[](#installation)

Use composer.

```
composer require arielmejiadev/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 ArielMejiaDev\LarapexCharts\Facades\LarapexChart
```

Or importing the LarapexChart class:

```
use ArielMejiaDev\LarapexCharts\LarapexChart;
```

Then in your view (Blade file) add:

```

     Chart Sample

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

     {{ $chart->script() }}

```

### More complex example

[](#more-complex-example)

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

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

More examples
-------------

[](#more-examples)

Check the documentation on: [Larapex Chart Docs](https://larapex-charts.netlify.app/)

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

[](#contributing)

The author Ariel Mejia Dev.

License
-------

[](#license)

[MIT](./LICENSE.md)

Support the project
-------------------

[](#support-the-project)

Hey 👋 thanks for considering making a donation, with these donations I can continue working to contribute to opensource projects.

[ ![](https://camo.githubusercontent.com/9005c0d063376d1a17bfcc48dcebb28150c668c4b0615cc02398934d7b20f3cc/68747470733a2f2f696d672e6275796d6561636f666665652e636f6d2f627574746f6e2d6170692f3f746578743d427579206d65206120636f6666656526656d6f6a693d26736c75673d617269656c6d656a696164657626627574746f6e5f636f6c6f75723d46463546354626666f6e745f636f6c6f75723d66666666666626666f6e745f66616d696c793d436f6f6b6965266f75746c696e655f636f6c6f75723d30303030303026636f666665655f636f6c6f75723d464644443030)](https://www.buymeacoffee.com/arielmejiadev)To do for version 4
-------------------

[](#to-do-for-version-4)

- Add blade directive `@apexchartscdn`
- Add blade directive `@script($chart)`
- Add a command to generate a blade component with the boilerplate directives just to include it on any blade file.
- Add a command to generate a vue component with all the boilerplate to just pass a `chart` prop and include the component on any vue component.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 82.8% 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 ~71 days

Recently: every ~97 days

Total

12

Last Release

1523d ago

Major Versions

1.0.5 → 2.0.02020-03-02

2.1.1 → 3.0.02021-07-27

3.0.1 → 4.0.02022-03-10

### Community

Maintainers

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

---

Top Contributors

[![ArielMejiaDev](https://avatars.githubusercontent.com/u/31971074?v=4)](https://github.com/ArielMejiaDev "ArielMejiaDev (24 commits)")[![insol-dev](https://avatars.githubusercontent.com/u/93246851?v=4)](https://github.com/insol-dev "insol-dev (2 commits)")[![SujalRatnaTamrakar](https://avatars.githubusercontent.com/u/42111958?v=4)](https://github.com/SujalRatnaTamrakar "SujalRatnaTamrakar (2 commits)")[![umairparacha00](https://avatars.githubusercontent.com/u/64344369?v=4)](https://github.com/umairparacha00 "umairparacha00 (1 commits)")

---

Tags

chartsapexchartsarielmejiadevlarapex

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/insol-larapex-charts/health.svg)](https://phpackages.com/packages/insol-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)[marineusde/larapex-charts

Package to provide easy api to build apex charts on Laravel

1214.2k](/packages/marineusde-larapex-charts)[hisune/echarts-php

A php wrapper for echarts javascript libraries

327201.9k5](/packages/hisune-echarts-php)

PHPackages © 2026

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