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

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

mohamedhabibwork/larapex-charts
===============================

Package to provide easy api to build apex charts on Laravel

033PHP

Since Aug 4Pushed 3y agoCompare

[ Source](https://github.com/mohamedhabibwork/larapex-charts)[ Packagist](https://packagist.org/packages/mohamedhabibwork/larapex-charts)[ RSS](/packages/mohamedhabibwork-larapex-charts/feed)WikiDiscussions master Synced 1mo 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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78.1% 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/465ce474e9c105751d2df13e0aa0f243cdd37909529b7f957cac01251644b1b1?d=identicon)[mohamedhabibwork](/maintainers/mohamedhabibwork)

---

Top Contributors

[![ArielMejiaDev](https://avatars.githubusercontent.com/u/31971074?v=4)](https://github.com/ArielMejiaDev "ArielMejiaDev (25 commits)")[![mohamedhabibwork](https://avatars.githubusercontent.com/u/64292519?v=4)](https://github.com/mohamedhabibwork "mohamedhabibwork (4 commits)")[![jamesmills](https://avatars.githubusercontent.com/u/557096?v=4)](https://github.com/jamesmills "jamesmills (2 commits)")[![umairparacha00](https://avatars.githubusercontent.com/u/64344369?v=4)](https://github.com/umairparacha00 "umairparacha00 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[jordanmiguel/laravel-popular

A Laravel package to track popularity of entries(by Models) in a website at a certain time.

659.6k1](/packages/jordanmiguel-laravel-popular)[jaaulde/php-ipv4

PHP classes for working with IPV4 addresses and networks.

1034.6k](/packages/jaaulde-php-ipv4)[ip2location/ip2location-cakephp

Lookup for visitor's IP information, such as country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type.

224.6k](/packages/ip2location-ip2location-cakephp)

PHPackages © 2026

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