Download the PHP package a5sys/monitor-bundle without Composer

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

Monitor Bundle

This bundle gives some statistics about the application usage.

You can easily know, day per day:

Installation

Download

Download the bundle using composer:

composer require 'a5sys/monitor-bundle'

Enable bundle

Enable the bundle in your /app/AppKernel.php:

new A5sys\MonitorBundle\MonitorBundle(),

Note that you also need to enable the jms-translation bundle:

new JMS\TranslationBundle\JMSTranslationBundle(),

Add channel

Configure the logger:

monolog:
    channels: ['monitor']
    handlers:        
        monitor:
            type:  rotating_file
            max_files: 60
            path:  "%kernel.logs_dir%/monitor.log"
            channels: ['monitor']
            formatter: monitor.monolog.formatter

Do not forget to remove the channel monitor from your main log if you do not want to spam it.

Example:

monolog:
    handlers:
        main:
            type: rotating_file
            max_files: 60
            path:   "%kernel.logs_dir%/%kernel.environment%.log"
            level:  debug
            channels: [!'monitor']

Routing

Set up routing, in your app/config/routing.yml

monitor_controller:
    resource: "@MonitorBundle/Controller/"
    type:     annotation
    prefix:   /monitor

Security

Set up security, in your app/config/security.yml

security:
    access_control:
        - { path: ^/monitor/, roles: ROLE_SUPER_ADMIN }

Configuration

These are the available configurations with their default value:

monitor:
    enable: true #enable or disable the logs
        slow_threshold:
            warning: 1000 #the requests that needs more than X ms is a slow one
            error: 3000 #the requests that needs more than X ms is an error, it takes too much time
types:
    start: true #is the start time for the request log required
    stop: true #is the stop time for the request log required
    duration: true #is the duration for the request log required
    memory: true #is the memory for the request log required
    url: true #is the url for the request log required
    user: true #is the user for the request log required

Usage

The monitor logs are in your app/logs folder.

The statistics can be viewed at the url (depending of your configuration)

http://yourapp/monitor

All versions of monitor-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
symfony/framework-bundle Version >=2.3
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 a5sys/monitor-bundle contains the following files

Loading the files please wait ....