This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
JBZoo Toolbox-Dev is a developer toolbox library that provides development dependencies and debugging utilities for JBZoo libraries on GitHub. It primarily serves as a development-only package to standardize debugging and development tools across JBZoo projects.
This is a lightweight library with minimal source code:
src/var-dumper.php- Main functionality: customized Symfony VarDumper configuration- The library primarily serves as a composer dependency aggregator for development tools
The main feature is a customized VarDumper configuration that:
- Outputs to
php://stderrinstead ofphp://stdoutto avoid breaking main script output during debugging - Optimized for CLI debugging with 16KB string limit
- Configures classic indentation style and UTF-8 encoding
- Disables PhpStorm file links for broader compatibility
Acts as a meta-package providing standardized versions of:
jbzoo/phpunit- PHPUnit testing framework extensionsjbzoo/codestyle- Code quality and linting toolsjbzoo/markdown- Markdown processing utilitiessymfony/var-dumper- Enhanced debugging outputphp-coveralls/php-coveralls- Coverage reportingfakerphp/faker- Test data generation
make update # Install/update all dependencies via composermake test-all # Run both PHPUnit tests and all code style checks
make test # Run PHPUnit tests only
make codestyle # Run all code quality tools (inherited from jbzoo/codestyle)This package includes JBZoo's standardized toolchain via the Makefile system:
- Inherits comprehensive make targets from
jbzoo/codestyle - Provides unified development environment across JBZoo projects
- Acts as a single dependency to pull in all necessary development tools
- PHP 8.3+ required
- Compatible with PHP 8.3 and 8.4 (tested in CI)
Uses JBZoo's extended PHPUnit framework:
- Tests extend
JBZoo\PHPUnit\PHPUnitbase class - Test files in
tests/directory with*Test.phpnaming pattern - PHPUnit configuration in
phpunit.xml.dist
This package is typically included as a development dependency in other JBZoo projects:
{
"require-dev": {
"jbzoo/toolbox-dev": "^8.0"
}
}The VarDumper configuration is automatically loaded via Composer's files autoloader, providing enhanced debugging capabilities across all JBZoo projects without additional setup.
composer.json- Defines dependencies and autoload configurationMakefile- Minimal makefile that includes JBZoo codestyle systemsrc/var-dumper.php- Main functionality for debugging enhancementsphpunit.xml.dist- PHPUnit configuration with coverage reporting