composer/xdebug-handler
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
composer/pcre | 3.1.3 | - | MIT | prod | |
psr/log | 3.0.0 | 6.77 kB | MIT | prod |
Composer/xdebug-handler is a standalone library which has been built to restart a Command Line Interface (CLI) process without loading the Xdebug extension. This extension, originally written as part of the composer/composer project, is now available as a standalone library meant for use with PHP. Its primary purpose aids speedy script execution because it negates the potential slow-down caused by the Xdebug extension.
Composer/xdebug-handler is deployed through composer dependencies and then incorporated into your PHP code. Installation of the composer/xdebug-handler library in your project can be carried out by running the following command:
$ composer require composer/xdebug-handler
Once you've installed the composer/xdebug-handler library, integration into your PHP code is quite straightforward. Here is a simple example of how it can be used:
use Composer\XdebugHandler\XdebugHandler;
$xdebug = new XdebugHandler('myapp');
$xdebug->check();
unset($xdebug);
In this case, 'myapp' is the $envPrefix
which would create two distinct environment variables upon being prepended to default base values.
Detailed documentation for composer/xdebug-handler is contained in the readme file of the GitHub repository. It provides in-depth explanations regarding the basic and advanced usage of composer/xdebug-handler. You will find comprehensive information on topics such as, 'How it works', 'Limitations', 'Helper methods', 'Setter methods', 'Process configuration', 'Troubleshooting', and 'Extending the library'. Access it here.