Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Xdebug Handler Laravel Package

composer/xdebug-handler

Restart PHP CLI processes without loading Xdebug (unless xdebug.mode=off), avoiding slowdowns in tools like Composer. Creates a temporary ini with Xdebug commented out and relaunches the command, with env vars to allow Xdebug or inspect original ini paths.

View on GitHub
Deep Wiki
Context7
3.0.5
  • Fixed: fail restart if PHP_BINARY is not available
3.0.4
  • Added: Functional tests.
  • Fixed: Incompatibility with PHPUnit 10.
3.0.3
  • Added: support for composer/pcre versions 2 and 3.
3.0.2
  • Fixed: regression in 3.0.1 affecting Xdebug 2.
2.0.5
  • Fixed: regression in 2.0.4 affecting Xdebug 2.
3.0.1
  • Fixed: error when calling isXdebugActive before class instantiation.
2.0.4
  • Fixed: allow calling isXdebugActive before class instantiation.
3.0.0
  • Removed: support for legacy PHP versions (< PHP 7.2.5).
    • Added: type declarations to arguments and return values.
    • Added: strict typing to all classes.
2.0.3
  • Added: support, type annotations and refactoring for stricter PHPStan analysis.
2.0.2
  • Added: support for xdebug_info('mode') in Xdebug 3.1.
    • Added: support for Psr\Log versions 2 and 3.
    • Fixed: remove ini directives from non-cli HOST/PATH sections.
2.0.1
  • Fixed: don't restart if the cwd is a UNC path and cmd.exe will be invoked.
2.0.0
  • Break: this is a major release, see UPGRADE.md for more information.
    • Break: removed optional $colorOption constructor param and passthru fallback.
    • Break: renamed requiresRestart param from $isLoaded to $default.
    • Break: changed restart param $command from a string to an array.
    • Added: support for Xdebug3 to only restart if Xdebug is not running with xdebug.mode=off.
    • Added: isXdebugActive() method to determine if Xdebug is still running in the restart.
    • Added: feature to bypass the shell in PHP-7.4+ by giving proc_open an array of arguments.
    • Added: Process utility class to the API.
1.4.6
  • Fixed: fail restart if proc_open has been disabled in disable_functions.
    • Fixed: enable Windows CTRL event handling in the restarted process.
1.4.5
  • Fixed: support for stream_isatty and overall correct FD forwarding to the restarted process.
1.4.4
  • Fix: exception if pcntl_signal is disabled.
1.4.3
  • Fixed: restore SIGINT to default handler in restarted process if no other handler exists.
1.4.2
  • Fixed: ignore SIGINTs to let the restarted process handle them.
1.4.1
  • Fixed: restart fails if an ini file is empty.
1.4.0
1.3.3
  • Fixed: add environment changes to $_ENV if it is being used.
1.3.2
  • Fixed: exit call being blocked by uopz extension, resulting in application code running twice.
1.3.1
  • Fixed: fail restart if passthru has been disabled in disable_functions.
    • Fixed: fail restart if an ini file cannot be opened, otherwise settings will be missing.
1.3.0
  • Added: setPersistent method to use environment variables for the restart.
    • Fixed: improved debugging by writing output to stderr.
    • Fixed: no restart when php_ini_scanned_files is not functional and is needed.
1.2.1
  • Fixed: fatal error with apc, when using apc.mmap_file_mask.
1.2.0
  • Added: debug information using XDEBUG_HANDLER_DEBUG.
    • Added: fluent interface for setters.
    • Added: PhpConfig helper class for calling PHP sub-processes.
    • Added: PHPRC original value to restart stettings, for use in a restarted process.
    • Changed: internal procedure to disable ini-scanning, using -n command-line option.
    • Fixed: replaced escapeshellarg usage to avoid locale problems.
    • Fixed: improved color-option handling to respect double-dash delimiter.
    • Fixed: color-option handling regression from main script changes.
    • Fixed: improved handling when checking main script.
    • Fixed: handling for standard input, that never actually did anything.
    • Fixed: fatal error when ctype extension is not available.
1.1.0
  • Added: getRestartSettings method for calling PHP processes in a restart process.
    • Added: API definition and @ internal class annotations.
    • Added: protected requiresRestart method for extending classes.
    • Added: setMainScript method for applications that change the working directory.
    • Changed: private tmpIni variable to protected for extending classes.
    • Fixed: environment variables not available in $_SERVER when restored in the restart.
    • Fixed: relative path problems caused by Phar::interceptFileFuncs - composer/xdebug-handler#46.
    • Fixed: incorrect handling when script file cannot be found.
1.0.0
  • Added: PSR3 logging for optional status output
    • Added: Existing ini settings are merged to catch command-line overrides
    • Added: Code, tests and other artefacts to decouple from Composer
    • Break: the following class was renamed:
      • Composer\XdebugHandler -> Composer\XdebugHandler\XdebugHandler
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport