2017 © Pedro Peláez
 

library databasewatcher

Laravel Package to track and monitor DB requests

image

bakraj/databasewatcher

Laravel Package to track and monitor DB requests

  • Saturday, July 28, 2018
  • by engineer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

DataBase Watcher

Laravel package to monitor database request , exposing an API to collect the usage statistics or using the package builtin view to represent the data on graphs using Chartjs., (*1)

install:

Require this package with composer using the following command:, (*2)

composer require bakraj/databasewatcher

After updating composer, add the service provider to the providers array in config/app.php, (*3)

$ bakraj\DataBaseWatcher\DataBaseWatcherServiceProvider::class,

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider., (*4)

Publishing views, assets and config:

1- publishing all:, (*5)

$ php artisan vendor:publish --provider="bakraj\DataBaseWatcher\DataBaseWatcherServiceProvider"

2- publishing views:, (*6)

$ php artisan vendor:publish --tag=databasewatcer.views --force

3- publishing assets:, (*7)

$ php artisan vendor:publish --tag=databasewatcer.assets --force

API Documentation:

over all statistics:

calling the route, (*8)

/databasewatcher/overall

expected result:, (*9)

{
    "stats":
    {
        "2018-07-25":121
    }
}

specific day statistics:

calling the route:, (*10)

/analyze/{date}

expected result:, (*11)

{
    "stats":
    {
        "hour_request":
            {
            "1":3,"2":9
            },
        "total":12
    }
}

The Versions

28/07 2018

0.2

0.2.0.0 https://github.com/bakraj/databasewatcher

Laravel Package to track and monitor DB requests

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel monitoring databasewatcher

28/07 2018

dev-dev-master

dev-dev-master https://github.com/bakraj/databasewatcher

Laravel Package to track and monitor DB requests

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel monitoring databasewatcher

26/07 2018

dev-master

9999999-dev https://github.com/bakraj/databasewatcher

Laravel Package to track and monitor DB requests

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel monitoring databasewatcher

26/07 2018

0.1

0.1.0.0 https://github.com/bakraj/databasewatcher

Laravel Package to track and monitor DB requests

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel monitoring databasewatcher