Download the PHP package andreabsferrazza/phoog without Composer

On this page you can find all versions of the php package andreabsferrazza/phoog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phoog

Phoog – Minimal PHP Deb(oo)ugging Toolkit

Phoog is a lightweight PHP library offering short-named debugging functions for quick variable inspection. Designed for speed, and zero dependencies — ideal for rapid prototyping, legacy debugging, or everyday dev workflows.

Features

Installation

Optional: Global Shortcuts

If you prefer to use the debug functions (evc(), evi(), etc.) without importing them in every file, you can include the helper once in your project bootstrap. To enable them, define PHOOG_ENABLE_HELPERS = true before loading Composer’s autoload.

Usage

⚠️ Phoog provides tools for quick diagnostics and prototyping. It is not designed for secure or high-availability production use. Global function exposure and file logging should be used with discretion.

vet($var); - var export true

Example:

vip($var); - var info pre

Wraps VET between pre tags and returns it.

evi($var); - echo var info pre

The main function to print variables in HTML. Example:

result:

evid($var); - evi and die

Dies after echoing VIP. Example:

Prints the variable $v and dies if $condition == true

sip($str); - string in pre

Expects a String. Returns EVI with some HTML formatting. Usually for printing out queries or text with \n.

esp($str); - echo string in pre

Expects a String.

Example:

Prints the query with newlines.

espd($str); - esp and die

Expects a String. Dies after echoing ESP. Example:

Prints the query with newlines and then dies, so $smth won't be echoed.

vit($var); - var info td

Wraps VET between td tags and returns it. This is for debugging in table tags, which often is a bit hefty.

evt($var); - echo var info td

evc($var); - echo var CLI

The main function to print variables in CLI

evcd($var); - evc and die

Dies after evc($var); Example:

Will print the array before it is sorted. Result:

dof($var, $filename = "debug_log.json", $incremental = true) - debug on file

Writes the contents of a variable to a JSON file. Useful when outputting to screen isn’t possible (e.g. in reports, cron jobs, or background processes).

$incremental: If true, appends each call as a new entry (default). If false, overwrites the file on each call.

Each log entry is saved as a timestamped object inside a debug array, making the file easy to parse or view in tools like Firefox.

Example

⚠️ Caution when using dof()

dof() writes to disk — make sure the target path ($filename) is writable and not publicly accessible via web, especially if it contains sensitive data. Use dof() only in development environments, not in production. Avoid dumping user data to predictable paths like /tmp/debug_log.json without proper permissions. If $incremental is true, the log file may grow indefinitely — monitor its size in long-running systems.


All versions of phoog with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package andreabsferrazza/phoog contains the following files

Loading the files please wait ....