jbzoo/toolbox-dev

Developer toolbox only for JBZoo libs on github+travis

7.3.0 2025-09-28 11:17 UTC

README

CI Coverage Status Psalm Coverage Psalm Level CodeFactor

Stable Version Total Downloads Dependents GitHub License

Developer toolbox library that provides standardized development dependencies and debugging utilities for JBZoo projects on GitHub.

Features

  • Enhanced Debugging: Customized Symfony VarDumper configuration optimized for CLI development
  • Development Dependencies: Unified package for all necessary JBZoo development tools
  • Standardized Toolchain: Consistent development environment across JBZoo ecosystem
  • Quality Assurance: Integrated code style checking and testing framework

Installation

composer require --dev jbzoo/toolbox-dev

Key Components

VarDumper Enhancement

Provides an optimized debugging experience with:

  • Output redirected to php://stderr to avoid breaking script output
  • 16KB string limit for performance
  • Classic indentation style for better readability
  • UTF-8 encoding support

Development Tools Integration

Includes standardized versions of:

  • jbzoo/phpunit - Enhanced PHPUnit testing framework
  • jbzoo/codestyle - Comprehensive code quality tools
  • jbzoo/markdown - Markdown processing utilities
  • symfony/var-dumper - Advanced debugging capabilities
  • php-coveralls/php-coveralls - Coverage reporting
  • fakerphp/faker - Test data generation

Usage

Development Setup

make update    # Install/update all dependencies

Testing and Quality Assurance

make test      # Run PHPUnit tests
make test-all  # Run tests and code style checks
make codestyle # Run all code quality tools

Debugging

The VarDumper configuration is automatically loaded, enhancing the dump() function:

// Enhanced debugging output
dump($variable);  // Outputs to stderr with optimized formatting

Requirements

  • PHP 8.2 or higher
  • Composer for dependency management

Integration

This package is designed to be included as a development dependency in JBZoo projects:

{
    "require-dev": {
        "jbzoo/toolbox-dev": "^7.0"
    }
}

License

MIT