Download the PHP package huangdijia/laravel-debuger without Composer

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

laravel-debuger

Latest Version on Packagist Total Downloads GitHub license

Installation

composer require huangdijia/laravel-debuger

Usage

引用

use Huangdijia\Debuger\Facades\Debuger;
Debuger::remark('begin');
// do something
Debuger::remark('end');
// 统计
echo Debuger::getRangeTime('begin','end').'s';

表示统计begin位置到end位置的执行时间(单位是秒),begin必须是一个已经标记过的位置,如果这个时候end位置还没被标记过,则会自动把当前位置标记为end标签,输出的结果类似于:0.0056s

默认的统计精度是小数点后4位,如果觉得这个统计精度不够,还可以设置例如:

echo Debuger::getRangeTime('begin','end',6).'s';

可能的输出会变成:0.005587s

如果你的环境支持内存占用统计的话,还可以使用getRangeMem方法进行区间内存开销统计(单位为kb),例如:

echo Debuger::getRangeMem('begin','end').'kb';

第三个参数使用m表示进行内存开销统计,输出的结果可能是:625kb

同样,如果end标签没有被标记的话,会自动把当前位置先标记位end标签。

助手函数 系统还提供了助手函数debug用于完成相同的作用,上面的代码可以改成:

debug('begin');
// do somethings
debug('end');
// 统计
echo debug('begin','end').'s';
echo debug('begin','end',6).'s';
echo debug('begin','end','m').'kb';

感谢

性能调试


All versions of laravel-debuger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
illuminate/console Version ^5.7|^6.0|^7.0|^8.0
illuminate/support Version ^5.7|^6.0|^7.0|^8.0
laravel/horizon Version ^1.0|^2.0|^3.0|^4.0|^5.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 huangdijia/laravel-debuger contains the following files

Loading the files please wait ....