承接 ecxod/debug 相关项目开发

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

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

ecxod/debug

最新稳定版本:1.0.11

Composer 安装命令:

composer require ecxod/debug

包简介

A package for debuging variables.

README 文档

README

This Library is a part of the Ecxod framework, but it can also be used in other projects as a standalone module

Install

In Ecxod there is no need to install it as it will be required automatically if you need debugging.

php8.2 composer.phar require ecxod/debug

the above command requires you to set the following variables in dotenv and it will compile and install also the debug.min.css in the $_ENV["CSSPATH"] path

Dotenv: you will need to set the following variables

$_ENV['MYIP']=...       # ex. 192.168.178.10,192.168.178.20, optional ..
$_ENV['SCSSPATH']=...   # ex. /scss
$_ENV['VENDOR']=...     # ex. /vendor
$_ENV['AUTOLOAD']=...   # ex. /vendor/autoload.php
$_ENV['WORKSPACE']=...  # ex. /workspace
$_ENV['DOCROOT']=...    # ex. /workspace/public
$_ENV["STATIC"]=...     # ex. /workspace/public/static
$_ENV["CSSPATH"]=...    # ex. /workspace/public/static/css
$_ENV["JSPATH"]=...     # ex. /workspace/public/static/js

Projektstruktur

scss/

public/
  ├─static/
  │   ├─css/
  │   ├─images/
  │   ├─js/
  │ 
  └── index.php

vendor/
  ├─ecxod/
  │   ├─debug/
  │       ├── compiler.php
  │       ├── composer.json
  │       ├── composer.phar
  │       ├── LICENSE
  │       ├── README.md
  │       ├── scss
          │   └── debug.scss
          └── src
               └── debug
                   └── D.php

load the debug class at the end of your index.php

cat index.php

<!DOCTYPE html>
<html lang="de_DE">
<head>
<link rel="stylesheet" type="text/css" href="https://ecxample.com/static/css/debug.min.css" as="style">
</head>


<?php
/**
D E B U G
*/
if( isMe() ){
  $oDEBUG = new \Ecxod\Debug\D;
  echo $oDEBUG->debug($_SESSION['lang'], "UTF-8");
  unset($oDEBUG);
}
?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-21