Download the PHP package larawire-garage/larapex-livewire without Composer

On this page you can find all versions of the php package larawire-garage/larapex-livewire. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package larapex-livewire

Larapex Livewire

Laravel wrapper for ApexCharts javascript plugin advanced features with livewire

 

👉 Support Livewire 3

👉 Support JS Callback Functions

👉 Support Light, Dark Themes

 

Installation

Publish configurations

Publish assets

Add Scripts

add @larapexScripts blade directive end of the body tag and before other scripts in main app layout file

If you want to use chart only in sub pages or livewire component and need to push scripts to specific stack add stack name to script_section in larapex-livewire.php config file

Make a chart

and Select a Chart Type from

  1. Area Chart
  2. Bar Chart
  3. Brush Chart
  4. Donut Chart
  5. Line Chart
  6. Pie Chart

then its generate a chart class.

Fill Data

Chart class is a normal livewire class and you can use livewire features inside the class. For example event_listeners, parse value through mount() method etc.

Add data generating code in dataSource() function and use it to fill data in build() method.

Add chart to page

add chart like any other livewire component into the blade file

Use chart class namespace in dot notation and all in slug format for chart component name in @livewire() blade directive.
example:
       app/Http/Livewire/TestChart.php Class can use as 'test-chart'.
       app/Http/Livewire/Charts/TestChart.php Class can use as 'charts.test-chart'.

Customize Chart

Can use any option except javascript callback functions as a array using set functions

also ApexChart has few helper functions

Overwrite configs

Livewire 3 Support

==================== New Chart Events ====================

This events Simple Chart & Brush Chart both supported.

Usage :

Js Callback Function Support

If you need to add custom callback functions for something like formatters, you can use function. In function first Parameter is array key path in dot notation. And JS Callback function string needs to pass as second parameter.

You can also use heredoc syntax and nowdoc syntax instead of regular string when defined js function

Usage :

Light, Dark Themes Support

You can change theme of the chart. In the configs you can customize the background and font colors for each light and dark theme. if you set default theme to "auto", chart use OS color scheme [light or dark].

⚠ If you migrate from v1.x, you needs to re-publish config file with --force option to replace new config file.

You can change the theme in the chart component using chart's theme() function.

You can change and customize the theme in the configs


▶ Only supports light, dark, auto themes.
▶ Only supports background_color & font_color attrubutes of the theme.
 

Also chart listening to themeChanged javascript custom event.

themeChanged event listener looking for event.detail.theme key for theme string.

Inspiration

Highly inspired by Larapex Charts Package.

!!! :tada::tada::tada: Enjoy :tada::tada::tada: !!!


All versions of larapex-livewire with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package larawire-garage/larapex-livewire contains the following files

Loading the files please wait ....