Download the PHP package laynefyc/php-monitor without Composer

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

php-monitor

A free, flexible, powerful tool that helps you monitor PHP Service and profiling PHP code. [![Latest Stable Version](https://poser.pugx.org/laynefyc/php-monitor/v/stable.png)](https://packagist.org/packages/laynefyc/php-monitor) [![Total Downloads](https://poser.pugx.org/laynefyc/php-monitor/downloads.png)](https://packagist.org/packages/laynefyc/php-monitor) [![Build Status](https://travis-ci.org/laynefyc/php-monitor.svg?branch=master)](https://travis-ci.org/laynefyc/php-monitor)

home

flame

url

English | 简体中文

✨ Features

⚙️ System requirements

Install tideways extension

PHP 5.6(download tideways v4.1.5) PHP 7.0+(download tideways v4.1.7) Add configuration data onphp.ini`.You should see something like:

` Once installed, you can use the following command to check:

`

Install php-monitor

`

Visit http://127.0.0.1:8066 and input account and password(php/php).

Detailed installation tutorial

  1. Download & Update Projects

    ` or

    `

  2. The project can set data storage mode and supports MySQL, MongoDB, SQLite.
    Set in configuration file src/config/config.php,The information is as follows:

    `` SQLite is used by default in this project,if you use other databases, please uncomment them.

    If you want to use MySQL to run the following table creation statement (table name cannot be modified):

    `

    Mongodb database will build its own tables, but it needs to add indexes by yourself.The adding way as follows:

    The table name for all data storage methods must bephp_monitor` and does not support modification.

  3. The operation of monitoring platform

    It can directly pass the following command during testing: ` After running successfully ,It can be accessed http://127.0.0.1:8066directly .

    Non-test environment please use Nginx.The configuration is as follows:

    `

  4. Login background

    Login account password can be modified directly in the configuration file,src/config/config.php

    ` Please change the account number and password in time after release. If you require a higher level of security, please extend the method of Login Controller.php file.

  5. Introduce monitoring into the project.

    The project is monitored in a non-invasive way, without any interference to the service in operation.

    There are two ways to add monitoring to a project. One is to modify the nginx configuration:

    For example, to monitor the running service www.site.com, you only need to add a line of configuration information in the nginx configuration file
    ` The effect of adding configuration is as follows (other content is just for demonstration, not the same nginx configuration):

    This way is to use theauto_prepend_file` interface provided by PHP,interfaceing https://www.php.net/manual/zh/ini.core.php#ini.auto-prepend-file.You need to restart nginx after adding configuration.

    The second way is to import the entry file that needs to monitor the project directly , usually add it in public/index.php

    ``

    The effect after adding configuration is as follows (except the core code, the other code is for demonstration):

    `` After adding the burying point, the request record of www.site.com project can be viewed in the http://127.0.0.1:8066 monitoring background.

  6. More details

    • MongoDB has the fastest storage speed. If you have high performance requirements, please use it first.
    • Modify the profile.enable property of the configuration file to modify the sampling frequency. Generally speaking, it is not necessary to store all requests.For example, 'rand (1, 100) > 60' is to set the sampling rate to '40%';
    • Modify the profiler.filter_path attribute of the configuration file to filter services that you do not want to collect, such as some intranet services that do not care about execution efficiency;
  7. Swoole support

    ``

TODO

Feedback

Please submit your issues.


All versions of php-monitor with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
ext-json Version *
illuminate/database Version ~5.8
jenssegers/mongodb Version ^3.5
illuminate/pagination Version ^5.8
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 laynefyc/php-monitor contains the following files

Loading the files please wait ....