PHPackages                             wladiz2001/visjs - 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. wladiz2001/visjs

ActiveLibrary

wladiz2001/visjs
================

Visjs 4 Integration for Laravel &gt; 5.5

1.0.3(7y ago)213MITPHP

Since Mar 2Pushed 7y agoCompare

[ Source](https://github.com/wladiz2001/visjs)[ Packagist](https://packagist.org/packages/wladiz2001/visjs)[ Docs](https://github.com/wladiz2001/visjs)[ RSS](/packages/wladiz2001-visjs/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

Visjs
=====

[](#visjs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/968150ee7617b7c4c233a12e773e67fd89dd8ff060e63fcbca3ca477c6102d3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776c6164697a323030312f7669736a732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wladiz2001/visjs)[![Total Downloads](https://camo.githubusercontent.com/70271ecf7f61dca38124586c5367336427f05db676b82841bf8cb8266109ac77/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776c6164697a323030312f7669736a732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wladiz2001/visjs)[![Build Status](https://camo.githubusercontent.com/46b004ee8bae5a76c66d49033ae33a38bd344f562291155bced721c07d124621/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776c6164697a323030312f7669736a732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/wladiz2001/visjs)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

Simple package to facilitate and automate the use of (network) charts in Laravel 5.x

using [Visjs](http://visjs.org/).

Code is 'inspired' from [laravel-chartjs](https://github.com/pjeutr/laravelvisj).

Installation
------------

[](#installation)

Via Composer

```
$ composer require wladiz2001/visjs
```

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)

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

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [author name](https://github.com/wladiz2001)
- [All Contributors](../../contributors)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community3

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~2 days

Total

4

Last Release

2617d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d571e85fd3d881e7a3fe2fc981aca7b6353c1debb6d98715eca709b505add5f?d=identicon)[wladiz2001](/maintainers/wladiz2001)

---

Top Contributors

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

---

Tags

laravelvis.js

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wladiz2001-visjs/health.svg)

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

###  Alternatives

[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)

PHPackages © 2026

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