Download the PHP package saeedvaziry/laravel-monitoring without Composer

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

Laravel Monitoring

Monitor your Laravel applications server with a beautiful dashboard and get notified if anything gets wrong!

Supported OS

This package works only on Linux servers.

Installation

1) Install the latest version from composer

For PHP >= 8.1

For PHP <= 8.0

2) Publish vendors

3) Run migrations

4) Set up a cronjob to collect data

5) Visit /monitoring to see the statistics.

Configuration

You can find the configuration at config/monitoring.php.

Key Description
instance_name This is your current server's name, And the data will be collected under this name.
routes You can change the URL prefix of the monitoring dashboard. Also, You can protect the route by applying middlewares to it.
models If you want to customize the models, define yours and update this config.
chart_colors Chart colors are customizable by this config.
notifications Currently, we support Slack and Email channels for notifications. However, You can add your custom channels. To add a custom channel, Create a class and implement it by SaeedVaziry\Monitoring\Channels\Channel and then add the class to channels under the notifications item.

Multi-Server support

Sometimes your source code is deployed to multiple servers.

For example, You have multiple webservers with a load balancer and another server for your Backoffice.

In this case, you just need to set a unique name for MONITORING_INSTANCE_NAME environment variable on each server, Of course, assuming that you have one database in common with all the servers that you want to monitor.

The result will be similar to the Demo picture.

Command

You can use php artisan monitoring:record command to collect the data manually.

Facade

Add the bellow line to your config/app.php file, Under the allias:

With this Facade you can access the server's resource usages.

Example usages:

Purge Records

Without purging, the monitoring_records table can accumulate records very quickly. To mitigate this, you should schedule the monitoring:purge Artisan command to run daily or any time you wish. You can also, Set the purge_before configuration at config/monitoring.php.

Contributing

Please feel free to submit an issue or open a PR.

Credits

License

Laravel Monitoring is open-sourced software and licensed under the MIT License (MIT).


All versions of laravel-monitoring with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.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 saeedvaziry/laravel-monitoring contains the following files

Loading the files please wait ....