The new version has been developed and the following improvements have been made:
Supports local Sqlite storage, as well as MySQL and MongoDB storage.
Internationalization, supports English/Simplified Chinese/Traditional Chinese.
Can be installed quickly through Composer.
Run the monitoring service with one command.
Support account and password login.
For more new features, please go to https://github.com/laynefyc/php-monitor to experience it.
The new version is already under development, all back-end functions have been developed, and front-end page development is still in progress. Because the front-end technology updates too quickly, I don’t plan to use jQuery all at once. The new version will use Vue or React, so I am also learning and developing at the same time.
The public account has been written for a while, and the content in it has been enriched a lot. Compared with the blog, the quality is higher, and the content shared is more systematic. If you are interested, pay attention.
http://imgs.it2048.cn/code-log.png
Before submitting an issue, please take a look at README.md (current page) and the Closed Issues that have been processed in history to find answers to 90% of the questions. For the other 10% of the issues, please submit them according to the information required in the Issue template. The more information you provide, the more accurate suggestions I can give you. Issues submitted that do not follow the specifications will be closed directly.
I want to set a goal in 2019 - rewrite xhprof extension and xhgui-branch. If you are interested, please go to my blog and leave a message to share my blog.
There are many PHP extensions for obtaining underlying information, such as uprofiler, tideways_xhprof, tideways, xhprof, etc. Their principles are the same, but the difference is in compatibility and stability (selecting one to install, installing multiple ones will conflict).
Class 'MongoClient' not found
Fatal error: Call to undefined function xhprof_enable()
If the above error message appears, please use php -m
to see if there is a tideways or tideways_xhprof extension. Then modify the extension of the config/config.default.php#L12 configuration file. If there are still problems, please check whether the alcaeus/mongo-php-adapter extension file exists in the vendor directory (this is an adapter compatible with mongo.so and mongodb.so). If it does not exist, please update the code (git pull origin master) and then run composer install to install it.
90% of the questions can be answered in ISSUEISSUE
The new extension of tideways has been renamed and does not support SQL display. It is recommended to use the V4 version v4.1.6 that supports SQL display.
If you must use the V5 version, please modify the configuration file config/config.default.php#L12 to tideways_xhprof
The SQL list and SQL execution time display have been added (only the tideways extension is currently supported), and there are screenshots below.
For the installation information of xhgui, please go to the source project to view the documentation: xhgui
If you cannot install it successfully, you can go to my blog to read this article: Tideways and xhgui create a PHP non-intrusive monitoring platform
Of course the best way is to contact me, my blog: https://blog.it2048.cn
The Chinese version of the project refers to https://github.com/snfnwgi/xhgui, some words that were not translated accurately enough were modified, and the untranslated parts were translated.
The xhgui source project has not been updated for a long time. I encountered many problems in the process of building a PHP monitoring platform based on xhgui. I know a lot about PHP and the front-end, and I plan to improve and optimize it while making the updated code open source.
I will fix some basic syntax bugs and submit a Merge Request. However, the Chinese modification will not be mentioned. The main reason is that the code requirements of the xhgui source project are basically usable, and the later addition of extensions is a mess. The people who maintain the code are also struggling, and many obvious errors have not been fixed. I cannot guarantee that the code I mentioned will be adopted in time. The UI of xhgui is mainly designed for foreigners. I am not used to many symbols and data units, and some interactions are not friendly. This project will mainly make changes in this aspect, so it is not suitable for submitting Merge Request.
Home page screenshot
waterfall chart
Function monitoring chart
SQL list
composer require laynefyc/xhgui-chinese
http://imgs.it2048.cn/code-log.png