承接 bixev/firelog 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

bixev/firelog

最新稳定版本:1.0.1

Composer 安装命令:

composer require bixev/firelog

包简介

FirePHP and ChromePHP console logging

README 文档

README

This library helps you to deal with FirePHP and ChromePHP logging

This is like vardump, but into the console, so it does not break the flow.

Ajax compliant ;)

Installation

Composer

It's recommended that you use Composer to install InterventionSDK.

composer require bixev/firelog "~1.0"

This will install this library and all required dependencies.

so each of your php scripts need to require composer autoload file

<?php

require 'vendor/autoload.php';

Browser extension

FirePHP

Requires Firebug

under Firefox : tools > modules > extensions > look for "FirePHP"

You need then to activate all firebug pannels

Manual : http://www.firephp.org/

ChromePHP

Install the extension : https://chrome.google.com/webstore/detail/chromephp/noaneddfkdjfnfdakjjmocngnfkfehhd

you need to activate the extension by clicking the button in chrome

Manual : http://craig.is/writing/chrome-logger

Usage

Simple

simply call the method

\Bixev\Firelog\Firelog::log($yourObject);
\Bixev\Firelog\Firelog::log($yourObject, $label);
\Bixev\Firelog\Firelog::log($yourObject, $label, \Bixev\Firelog\LoggerLevel::LEVEL_WARN);

Go into the browser console, you will see your logs

You get your object.

Notes

ChromePHP uses cookies, Firephp uses multiple headers.

FirePHP supports bigger objects. In Chrome you will see too big headersin the console if you log too big objects. In that case Firefox should give you correct log.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-06