Download the PHP package tmc1807/laravel-tree-chart without Composer

On this page you can find all versions of the php package tmc1807/laravel-tree-chart. 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 laravel-tree-chart

laravel-tree-chart

PHP Laravel Tests Docs

Diagram struktur pohon untuk Laravel Blade yang framework-agnostic.

Komponen Blade tunggal dan mandiri yang merender pohon bersarang apa pun sebagai diagram interaktif — dengan kartu berwarna per level, garis penghubung beranimasi, node yang bisa dilipat (collapse), panel samping, dan kemampuan menyembunyikan node. Tanpa Bootstrap, tanpa Livewire, tanpa JS/CSS eksternal: semua style dan script disuntikkan inline, hanya sekali per halaman.

Awalnya diekstrak dari modul RPJMD pohon kinerja — cocok untuk bagan organisasi, kaskade tujuan, pohon keluarga, peta situs, dan lainnya.

Dokumentasi

Dokumentasi lengkap tersedia di https://tmc1807.github.io/laravel-tree-chart:

Fitur

Instalasi

Untuk pengembangan lokal lewat path repository:

Laravel meng-auto-discovery service provider. Jika aplikasi Anda menonaktifkan package discovery, daftarkan secara manual di bootstrap/providers.php:

Mulai cepat

Bangun node sebagai array bersarang:

Skema node

Key Tipe Deskripsi
id string Id unik (dipakai untuk DOM id, collapse, sembunyikan/pulihkan).
header string Teks pada baris header berwarna (mis. Misi 1). Hapus untuk menyembunyikan baris header.
label string Teks utama pada badan kartu.
sub_label string Teks sekunder redup pada badan kartu.
photo string | false URL gambar opsional yang dirender sebagai avatar bulat. Jika kosong, opsi photo_placeholder yang ditampilkan. Set false untuk menyembunyikan avatar pada node ini saja (walau opsi photo global aktif).
position string Penempatan relatif terhadap parent: down (ke bawah, default) atau side (ke samping kartu parent).
color string Warna hex untuk border kartu, header, dan garis. Jatuh ke palet per level jika tidak ada.
width int Lebar kartu dalam px; default mengikuti opsi card_width.
children array Node anak (bersarang).
side string | Htmlable Konten panel samping, dirender apa adanya ({!! !!}). Bisa view('name', [...]) atau HTML.
side_visible bool Apakah panel samping mulai terlihat (default true).
collapsed bool Mulai dengan anak terlipat (default false).
hideable bool Tampilkan tombol × untuk menyembunyikan cabang menjadi badge (default false).

Key tambahan apa pun disimpan di extra dan diabaikan oleh renderer.

Builder helper

Alih-alih array, Anda bisa memakai builder fluent Node:

Opsi

Semua opsi bersifat opsional; default ada di config/tree-chart.php (publish dengan php artisan vendor:publish --tag=tree-chart-config).

Demo

Halaman contoh disertakan. Aktifkan hanya saat pengembangan:

Lalu kunjungi /tree-chart/demo. Saat dinonaktifkan (default), route tidak didaftarkan.

Pengujian & gaya

Lisensi

MIT


All versions of laravel-tree-chart with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0
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 tmc1807/laravel-tree-chart contains the following files

Loading the files please wait ...