Download the PHP package atmos/laravel-db-sentinel without Composer

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

DB Sentinel for Laravel

Latest Version on Packagist Total Downloads

Laravel DB Sentinel is a smart database query monitoring and optimization tool for Laravel 7+. It helps Laravel applications track, analyze and optimize database behavior with insights on slow or inefficient queries and actionable performance feedback.

โš ๏ธ Beta Version
This package is currently in Beta. Expect frequent updates and potential breaking changes until we reach version 1.0.0. Please report any issues or bugs on the GitHub repository.

โœจ Features

๐Ÿ“ฆ Installation

Install Laravel DB Sentinel via Composer:

โš ๏ธ Important: Run Migrations

After installing the package, you must run:

Laravel Auto-Discovery

This package supports Laravel's package auto-discovery, so no manual registration is required.

If auto-discovery is disabled, manually register the service provider in config/app.php:

๐Ÿ”ง Publishing Package Resources

Laravel DB Sentinel allows you to publish its resources so you can customize them inside your application.

๐Ÿ“„ Publish Configuration File

Publish the configuration file to config/db-sentinel.php:


๐ŸŽจ Publish View Files

If the package provides Blade views, publish them with:

Published views will be located in:

You can safely modify these views without affecting the core package.


๐Ÿ’ก Tip: You can run php artisan vendor:publish without arguments to interactively choose which resources to publish.

โš™๏ธ Configuration

DB Sentinel is designed to work out of the box, but you can customize its behavior using the following environment variables in your .env file.

๐Ÿ”Œ General & Storage

Variable Description Default
DB_SENTINEL_ENABLED Toggle the entire monitoring system. true
DB_SENTINEL_CONNECTION DB connection to store the DB Sentinel logs (e.g., mysql). Your application's default database connection
DB_SENTINEL_LOGS_TABLE The name of the table for stored logs. sentinel_logs
DB_SENTINEL_PRUNE_DAYS Auto-delete logs older than X days. 30
DB_SENTINEL_SCHEDULE_ENABLED Auto-schedule pruning command. true

โšก Performance & Scope

Variable Description Default
DB_SENTINEL_QUEUE_NAME Queue for background analysis jobs. default
DB_SENTINEL_ALLOWED_CONS Connections to monitor (comma-separated). mysql,mariadb,pgsql,sqlsrv
DB_SENTINEL_IGNORED_CONS Connections to skip (comma-separated). sqlite,testing

๐Ÿ–ฅ๏ธ Dashboard & Security

Variable Description Default
DB_SENTINEL_DASHBOARD Enable or disable the Web UI. true
DB_SENTINEL_PATH The URL slug to access the dashboard. db-sentinel
DB_SENTINEL_USER_IDS Authorized User IDs (comma-separated). (empty)

๐Ÿ“ Example .env Setup

โš ๏ธ Important Logic & Security Notes

๐Ÿ”„ Connection Precedence

When configuring your monitoring scope, please note the following hierarchy:

๐Ÿ”’ Dashboard Access

[!CAUTION] Be cautious when setting DB_SENTINEL_USER_IDS. This variable controls who can view your database performance metrics and raw SQL queries.

  • Ensure you only input the numeric IDs of trusted administrators.
  • If left empty while DB_SENTINEL_DASHBOARD is true, access will depend solely on your auth middleware, which may be too permissive depending on your app's setup.

๐Ÿงน Pruning

Auto-Pruning

By default, DB Sentinel schedules a daily cleanup of old logs.

Configuration

You can control this behavior in your .env:

[!TIP] If you set DB_SENTINEL_SCHEDULE_ENABLED=false, the package will not register the task. You can then manually add php artisan db-sentinel:prune to your own Scheduler at a specific time that suits your server load.

๐Ÿงน Manual Pruning

If you want to clear old logs immediately without waiting for the automated scheduler, you can run the built-in Artisan command.

Usage

Run the following command in your terminal:


All versions of laravel-db-sentinel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0|^8.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/pipeline Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/bus Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/queue Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.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 atmos/laravel-db-sentinel contains the following files

Loading the files please wait ...