Skip to content

PHP VarDump function to help debug code inline, by printing human readable information about php entities (vars, methods, classes, static properties, etc) PHP Composer Repository

License

Notifications You must be signed in to change notification settings

FalkonCorp/core-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CORE DEV

(PHP Composer Source Repository) Useful functions to debug server behavior, and provide a formated and structurated response.

VDD

F4lk0n VarDump functions to help visualize variable contents. Useful when, for some reason you don't have XDebug installed on the server and need to perform a quick analisys of the variables contents.

Content

Features:

  • Indicate variables types;
  • Indicate file and line of the caller; (When available at the server);
  • HTML formated output;
  • Stylized output;
  • Short name for easy typing while developing;

To Do (Future):

  • Avoid circular reference;
  • Customize output style;

Install

With compose add it to the required depencies:

  "require": {
    "f4lk0n/core-dev": "*"
  },

Manually, require all files or just the desired ones from the src/ folder:

<?php
  require "src/VDD.php";

Usage

Call the VD function passing the desired var, to print and continue; Call the VDD function, if you wanna print and stop execution.

<?php
  VD($someVarA);  //VarDump contents;
  VD($someVarB);  //VarDump contents;
  VD($someVarC);  //VarDump contents;
  VDD($someVarD); //VarDump contents and die;
  someFunction(); //Not called;

About

PHP VarDump function to help debug code inline, by printing human readable information about php entities (vars, methods, classes, static properties, etc) PHP Composer Repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages