PHPackages                             pjeutr/laravelvisjs - 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. pjeutr/laravelvisjs

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

pjeutr/laravelvisjs
===================

Simple package to facilitate and automate the use of charts in Laravel 5.x using Visjs library

1.0.1(8y ago)0162MITPHPPHP &gt;=5.6.4

Since Oct 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pjeutr/laravel-visjs)[ Packagist](https://packagist.org/packages/pjeutr/laravelvisjs)[ RSS](/packages/pjeutr-laravelvisjs/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

laravel-visjs - Visjs wrapper for Laravel 5.x
=============================================

[](#laravel-visjs---visjs-wrapper-for-laravel-5x)

Simple package to facilitate and automate the use of (network) charts in Laravel 5.x using [Visjs](http://visjs.org/).

Code is 'ported' from [laravel-chartjs](https://github.com/fxcosta/laravel-chartjs).

Setup:
======

[](#setup)

```
composer require pjeutr/laravelvisjs

```

And add the Service Provider in your file config/app.php:

```
Pjeutr\LaravelVisJs\Providers\VisjsServiceProvider::class
```

Finaly, for now, you must install and add to your layouts / templates the Visjs library that can be easily found for download at: . This setting will also be improved.

Usage:
======

[](#usage)

You can request to Service Container the service responsible for building the charts and passing through fluent interface the chart settings.

```
$service = app()->visjs
    ->name()
    ->type()
    ->size()
    ->datasets()
    ->options();
```

For now the builder needs the name of the chart, the type of chart that can be anything that is supported by visjs and the other custom configurations like, datasets, size and options.

In the dataset interface you can pass any configuration and option to your chart. All options available in visjs documentation are supported. Just write the configuration with php array notations and its work!

Advanced visjs options
======================

[](#advanced-visjs-options)

Since the current version allows it to add simple json string based options, it is not possible to generate options like:

```
    options: {
        scales: {
            xAxes: [{
                type: 'time',
                time: {
                    displayFormats: {
                        quarter: 'MMM YYYY'
                    }
                }
            }]
        }
    }
```

Using the method optionsRaw(string) its possible to add a the options in raw format:

```
        $chart->optionsRaw = "{
            legend: {
                display:false
            },
            scales: {
                xAxes: [{
                    gridLines: {
                        display:false
                    }
                }]
            }
        }";
```

Examples
========

[](#examples)

1 - Network Chart:

```
// ExampleController.php

$edges = [
    ["from" => 7905, "to" => "7886", "label" => 50068, "length" => 10],
    ["from" => -1, "to" => "7905", "label" => 100, "group" => 40]
];
$nodes = [
	["id" => -10, "shape" => "circularImage", "size" => 40, "color" => '#999', "borderWidth" => 1],
	["id" => 7905, "label" => "loyal", "value" => 500, "group" => 'big1'],
	["id" => 7886, "label" => "sensitive", "value" => 100, "group" => 'big2']
];

$visjs = app()->visjs
        ->name('networkChartTest')
        ->type('Network')
        ->size(['width' => 400, 'height' => 200])
        ->datasets(["nodes" => $nodes, "edges" => $edges])
        ->options([]);

return view('example', compact('visjs'));

 // example.blade.php

    {!! $visjs->render() !!}

```

OBS:
====

[](#obs)

This README as well as the package is in development but will be constantly updated and will keep you informed as soon as are ready for production. Thank you for understanding.

Any questions or suggestions preferably open a issue!

License
=======

[](#license)

LaravelVisJs is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ced83bf2a893799d8071a1aeaf53caf4a3080ec93100d7dc4ab03227cb5b9d3?d=identicon)[pjeutr](/maintainers/pjeutr)

---

Top Contributors

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

---

Tags

graphicslaravel5vis.jschartreportspjeutr

### Embed Badge

![Health badge](/badges/pjeutr-laravelvisjs/health.svg)

```
[![Health](https://phpackages.com/badges/pjeutr-laravelvisjs/health.svg)](https://phpackages.com/packages/pjeutr-laravelvisjs)
```

###  Alternatives

[fx3costa/laravelchartjs

Simple package to facilitate and automate the use of charts in Laravel 5.x using Chartjs v2 library

486471.0k4](/packages/fx3costa-laravelchartjs)[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[laralib/l5scaffold

Extend Laravel 5's generators scaffold.

31474.1k](/packages/laralib-l5scaffold)[devfactory/minify

A package for minifying styles and javascript for laravel 5

87363.5k14](/packages/devfactory-minify)[misterphilip/maintenance-mode

An enhanced drop-in replacement for Laravel's maintenance mode

120176.7k](/packages/misterphilip-maintenance-mode)

PHPackages © 2026

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