Download the PHP package vnuswilliams/larapex-charts without Composer
On this page you can find all versions of the php package vnuswilliams/larapex-charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vnuswilliams/larapex-charts
More information about vnuswilliams/larapex-charts
Files in vnuswilliams/larapex-charts
Package larapex-charts
Short Description Package to provide easy api to build apex charts on Laravel
License MIT
Homepage https://larapex-charts.netlify.app/
Informations about the package larapex-charts
Larapex Charts
[](https://madewithlaravel.com/p/larapex-charts/shield-link) [](https://packagist.org/packages/arielmejiadev/larapex-charts) [](https://packagist.org/packages/arielmejiadev/larapex-charts)  [](https://packagist.org/packages/arielmejiadev/larapex-charts)
A Laravel wrapper for apex charts library Check the documentation on: Larapex Chart Docs.
This repository is inspired by ArielMejiaDev/larapex-charts and gives full credit to the original project.
Installation
Install the Laravel package with Composer:
You can also install ApexCharts in your frontend bundle (optional):
Then import it in your app.js (or any other frontend entry file):
This npm/Vite setup is optional if you prefer using the CDN, or if ApexCharts is already available in your project.
Usage
Basic example
In your controller add:
Remember to import the Facade to your controller with
Or importing the LarapexChart class:
Then in your view (Blade file) add:
$chart->script() first uses window.ApexCharts (useful when ApexCharts is loaded via npm/Vite), and automatically falls back to the CDN only if ApexCharts is not already available globally.
Livewire support (v2 & v3)
If you render charts inside Livewire components (including conditional rendering/tabs/selectors), keep using the same API:
Then place the global script directive once in your main layout (before </body>):
The directive now automatically:
- initializes all charts found in the page,
- re-initializes charts after Livewire DOM updates,
- destroys stale chart instances when elements disappear,
- keeps working normally in non-Livewire projects.
Optional: if you update data from Livewire and need a full page chart refresh, emit:
or
More complex example
You can create a variety of charts including: Line, Area, Bar, Horizontal Bar, Heatmap, pie, donut and Radialbar.
More examples
Check the documentation on: Larapex Chart Docs
Contributing
The author Ariel Mejia Dev.
License
MIT
Support the project
Hey 👋 thanks for considering making a donation, with these donations I can continue working to contribute to opensource projects.
Roadmap for future versions
- [ ] Add blade directive
@apexchartscdn - [ ] Add blade directive
@script($chart) - [ ] Add a chain options setter for charts
- [ ] Update Github Actions to run tests
- [ ] Update the package in general for more efficient & modern practices (spatie skeleton package)
- [ ] Add ReactJS + Inertia Support
- [ ] Add More complex charts
- [ ] Add More complex boilerplate code using Laravel/Prompts
- [ ] Add more complex boilerplate code examples using Laravel Trends Package