EN FR
← Packages

jdz/output

Output and buffer management

Overview

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

Features

  • Multiple output types: step, info, warn, error, and dump messages
  • Dual storage system: Filtered output based on verbosity + complete message dump
  • Verbosity control: Fine-grained filtering with hierarchical levels using PHP 8.1+ enums
  • CLI detection: Automatically detects CLI environment and outputs to console
  • File export: Save filtered or complete output to files for logging
  • Tagged messages: All messages are automatically tagged and aligned
  • String conversion: Access both filtered and complete output programmatically
  • Type-safe: Uses backed enums for type safety and better IDE support

Installation

composer require jdz/output