Download the PHP package jdz/output without Composer

On this page you can find all versions of the php package jdz/output. 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 output

JDZ Output

A lightweight PHP library for handling process output with different verbosity levels and formatting options. Perfect for CLI applications, logging, and process monitoring.

Features

Installation

Install via Composer:

Requirements

Quick Start

Verbosity Levels

The library uses a PHP 8.1+ backed enum for type-safe verbosity levels. All messages are always stored internally regardless of verbosity level.

Enum Cases

Enum Case Value Description
Verbosity::NONE 0 No messages in filtered output
Verbosity::STEP 1 Only step messages
Verbosity::ERROR 4 Step and error messages
Verbosity::WARN 8 Step, error, and warning messages
Verbosity::INFO 16 Step, error, warning, and info messages
Verbosity::ALL 32 All messages including debug/dump

Usage

Verbosity Hierarchy

Higher verbosity levels include all lower level messages:

Enum Methods

Message Types

The Output class provides methods for different types of messages, each tagged appropriately.

CLI Mode

The library automatically detects if it's running in CLI mode and outputs messages to the console in real-time.

Dual Storage System

One of the key features is the dual storage system:

  1. Filtered Output ($output array): Contains only messages that pass the verbosity filter
  2. Complete Dump ($dump array): Contains ALL messages regardless of verbosity

File Output

Save output to files with optional verbosity filtering:

File contents example:

filtered.log:

complete.log:

Advanced Usage

Dual Output Access

Custom Tags

Add custom tagged messages that don't fit standard categories:

Understanding Message Formatting

All tags are padded to 8 characters for consistent alignment:

Examples

See the examples directory for detailed examples:

Testing

Run the test suite:

License

This library is licensed under the MIT License. See the LICENSE file for details.

Changelog

Version 2.0.0

Version 1.0.0


All versions of output with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 jdz/output contains the following files

Loading the files please wait ...