addvilz/what_loaded 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

addvilz/what_loaded

Composer 安装命令:

composer require addvilz/what_loaded

包简介

Determine What packages, classes and vendors were loaded during execution

README 文档

README

WhatLoaded is essentially a autoloader hook that listens for autoload calls and registers all classes that is loaded via autoloader. It is later possible to analyze this data to get insight on dependencies and whatever other metrics you could extract from this.

Installation

composer require addvilz/what_loaded

Usage

IMPORTANT: WhatLoaded::start must be invoked AFTER any other autoload handlers are registered. For example, if you are using composer, you must invoke WhatLoaded::start after require '/vendor/autoload.php'.

Rendering stats manually

    \Addvilz\WhatLoaded\WhatLoaded::start();
    // ... code
    \Addvilz\WhatLoaded\WhatLoaded::render();

Retrieving collected data

    \Addvilz\WhatLoaded\WhatLoaded::start();
    // ... code
    $data = \Addvilz\WhatLoaded\WhatLoaded::collect();

Rendering stats on shutdown

    \Addvilz\WhatLoaded\WhatLoaded::start();
    \Addvilz\WhatLoaded\WhatLoaded::renderOnShutdown();
    // ... code

License

Licensed under terms and conditions of Apache 2.0 license.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-07-29