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

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

ademking/larapex-charts
=======================

PHP 7.2 - Package to provide easy api to build apex charts on Laravel

134PHP

Since Feb 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Ademking/larapex-charts)[ Packagist](https://packagist.org/packages/ademking/larapex-charts)[ RSS](/packages/ademking-larapex-charts/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71f1b327aabdecfa1638be7f2ef3316e4566454abe6246a31232d001afec2471?d=identicon)[Ademking](/maintainers/Ademking)

---

Top Contributors

[![Ademking](https://avatars.githubusercontent.com/u/12462188?v=4)](https://github.com/Ademking "Ademking (2 commits)")

### Embed Badge

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

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

###  Alternatives

[sylius-labs/polyfill-symfony-framework-bundle

Symfony FrameworkBundle Polyfill

135.9M2](/packages/sylius-labs-polyfill-symfony-framework-bundle)[roots/bedrock-disallow-indexing

Disallow indexing of your site on non-production environments

134.0M32](/packages/roots-bedrock-disallow-indexing)[pixelant/pxa-newsletter-subscription

Newsletter Subscription

1710.1k1](/packages/pixelant-pxa-newsletter-subscription)[enlitepro/zf2-scaffold

1022.5k3](/packages/enlitepro-zf2-scaffold)

PHPackages © 2026

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