Download the PHP package naimul/db-visualizer without Composer

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

๐Ÿ” Laravel DB Visualizer

A powerful Laravel package to analyze your application models, relationships, database usage, and detect performance issues like N+1 queries, unused columns, and missing eager loading.


๐Ÿš€ Features


๐Ÿ“ฆ Installation

Install via Composer:

`


โš™๏ธ Auto Service Provider

If you are using Laravel 10+, the package will auto-register.

If not, add manually:


๐Ÿ—‚ Publishing Configuration

To customize the package's configuration, publish the config file with:

This will create a db-visualizer.php config file in your config directory.

๐Ÿ—ƒ Publishing Assets (Views, JS, CSS)

To publish the package's frontend resources (views, JS, CSS), run:

This will copy the package's resources into your application's resources/vendor/db-visualizer directory for customization.

๐Ÿ” Authorization

Access to DB Visualizer is controlled via a viewDbVisualizer gate. By default, access is only granted in the local environment.

To allow access in other environments, override the gate in your AppServiceProvider:

Requests that fail the gate receive a 403 response. Unauthenticated users are redirected to the login page.

Important: Always declare a nullable ?User $user parameter in your gate callback. Laravel uses this to determine whether the gate supports unauthenticated (guest) access. A callback without any parameter โ€” such as fn () => true โ€” will not be called for guests and will redirect them to login instead.


๐ŸŒ Routes

After installation, visit:

Example:


๐Ÿ“Š API Endpoints

Get all models analysis

Search models

Model details


๐Ÿง  What It Analyzes

โœ” Models

โœ” Relations

โœ” Columns

โœ” Performance Score


๐Ÿ“ˆ Example Response


โšก Performance Scoring Rules

Issue Penalty
Unused relation -10
Unused column -2
N+1 issue -15
Missing eager load -10

Bonus:


๐Ÿ›  Requirements


๐Ÿ“ Supported Structure


๐Ÿ”ฅ Use Case

This package is useful for:


๐Ÿงฉ Future Plans


๐Ÿค Contributing

Pull requests are welcome. For major changes, please open an issue first.


๐Ÿ“œ License

MIT License ยฉ Open Source


โญ Support

If you like this package, give it a โญ on GitHub.


All versions of db-visualizer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/filesystem Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/cache Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/database Version ^10.0 || ^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 naimul/db-visualizer contains the following files

Loading the files please wait ...