Download the PHP package andretmblkk/dfdgenerator without Composer

On this page you can find all versions of the php package andretmblkk/dfdgenerator. 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 dfdgenerator

Laravel DFD Generator

Laravel DFD Generator adalah package Laravel untuk membuat Data Flow Diagram (DFD) otomatis dari aplikasi Laravel. Package ini membaca route, controller action, pemakaian model Eloquent, dan akses database, lalu menampilkan hasilnya lewat live web viewer /dfd atau export static HTML/SVG/JSON/Mermaid.

Project ini dibuat oleh Andre Tumbelaka.

Fitur

Requirement

Installation

Install langsung lewat Composer:

Laravel akan auto-discover service provider package ini. Setelah install, route /dfd langsung tersedia selama config route package aktif.

Kalau auto-discovery dimatikan, daftarkan provider manual di config/app.php:

Update package

Kalau package sudah pernah terinstall dan ingin mengambil versi terbaru:

Publish config

Publish config bersifat opsional. Jalankan ini hanya kalau ingin mengubah prefix route, middleware, output path, semantic groups, atau setting lain.

File yang dibuat:

Publish assets

Live viewer /dfd langsung bekerja setelah install karena package menyajikan CSS/JS lewat route asset internal:

Artinya user tidak wajib menjalankan vendor:publish agar UI tampil modern. Kalau ingin menyalin asset package ke public path Laravel standar, jalankan:

File akan dipublish ke:

Usage: live viewer

Jalankan aplikasi Laravel:

Buka DFD viewer:

Package akan scan route/controller aplikasi saat halaman /dfd dibuka, lalu render viewer langsung. Tidak perlu generate JSON atau menghubungkan frontend manual.

Viewer route mode memakai asset URL absolut dari Laravel asset(), sehingga /dfd tetap benar meskipun dibuka tanpa trailing slash. CSS dan JS akan diload dari /dfd/assets/..., bukan dari /assets/....

Konfigurasi route viewer

Default route:

Ubah prefix lewat .env:

Kalau ingin disable viewer:

Kalau prefix diubah, asset viewer ikut menyesuaikan. Contoh:

Viewer:

Asset:

Konfigurasi nama sistem

Tambahkan ke .env aplikasi Laravel:

Export static HTML/SVG/JSON

Kalau tetap butuh file static:

Default output:

File yang dihasilkan:

Static HTML mode memakai asset relatif:

Karena itu storage/dfd/index.html bisa dibuka sebagai file static selama folder assets tetap berada di sebelah index.html.

Custom output folder:

Buka:

Kalau output diarahkan ke public/dfd, viewer static juga bisa dibuka lewat web server:

Export Mermaid legacy

Export JSON legacy:

Debug

Kalau command gagal dan butuh detail error:

Cara kerja singkat

  1. Package membaca route Laravel.
  2. Action controller diparse dari source code.
  3. Pemakaian model/table dideteksi.
  4. Proses bisnis dikelompokkan berdasarkan config semantic groups.
  5. DFD Level 0 sampai Level 3 dibangun.
  6. Viewer route mode menampilkan diagram langsung di /dfd.
  7. Static mode menulis index.html, SVG, JSON, dan asset viewer ke output folder.

Development package

Clone repository:

Install dependency:

Jalankan test:

Atau langsung:

Regenerate autoload setelah mengubah class:

Struktur project

Catatan penting

Package ini menganalisis struktur aplikasi berdasarkan route, controller, model, dan pemakaian database yang bisa dibaca secara statis. Kalau logic aplikasi terlalu dinamis, misalnya route/controller dibuat saat runtime, hasil diagram bisa kurang lengkap.

Untuk live viewer, pastikan route package tidak diblokir middleware aplikasi. Secara default package memakai middleware web.

License

MIT


All versions of dfdgenerator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
nikic/php-parser Version ^5.7
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 andretmblkk/dfdgenerator contains the following files

Loading the files please wait ...