定制 clodeindustrie/silverstripe-consoler 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

clodeindustrie/silverstripe-consoler

最新稳定版本:v1.0.1

Composer 安装命令:

composer require clodeindustrie/silverstripe-consoler

包简介

Debug to your browser console

README 文档

README

Print debug statements from your backend to your browser console.

Installation

composer require --dev silverstripe-consoler

NB: By default, it is configured to be enabled only in dev environment. Along with installing it as a required-dev package, this should avoid accidentally leaking data in a production environment.

Documentation

The package is namespaced clodeindustrie/silverstripe-consoler however, the class is namespaced clie/Consoler that way it is bit easier to user directly in any class without having to use ... it at the top the file.

// Print strings
\Clie\Consoler::log('This is a debugging statement');

// Print Arrays
\Clie\Consoler::log([ "my-key" => "my-value"]);

// Print DataObjects
\Clie\Consoler::log(Member::get()->first());

screenshot

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-08-26