PHPackages                             dbalabka/phpdebug-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. dbalabka/phpdebug-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

dbalabka/phpdebug-cli
=====================

XDebug and Zend Debugger PHP CLI debugging helper console command with PhpStorm, NetBeans support

1121[2 issues](https://github.com/dbalabka/phpdebug-cli/issues)[1 PRs](https://github.com/dbalabka/phpdebug-cli/pulls)Shell

Since May 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dbalabka/phpdebug-cli)[ Packagist](https://packagist.org/packages/dbalabka/phpdebug-cli)[ RSS](/packages/dbalabka-phpdebug-cli/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

phpdebug-cli
============

[](#phpdebug-cli)

XDebug PHP CLI debugging helper console command with PhpStorm, NetBeans support

Installation steps
==================

[](#installation-steps)

1. Donwload file into ~/.phpdebug. Run following command: ```
    curl https://raw.githubusercontent.com/torinaki/phpdebug-cli/master/phpdebug.sh > ~/.phpdebug
    ```
2. Put following lines into ~/.bashrc : ```
    # Get the aliases and functions
    if [ -f ~/.phpdebug ]; then
        . ~/.phpdebug
    fi
    ```
3. (optional) Script will try to autodetect your machine IP where runs IDE or use 127.0.0.1 otherwise. If automatic detection doesn't work for you, set ip directly via IDE\_IP enviroment variable: ```
    export IDE_IP=1.2.3.4
    ```
4. (optional) Change ports if it not same as default (see local variables zend\_debugger\_config and xdebug\_config);

```
   export IDE_ZEND_PORT=10137
   export IDE_ZDEBUG_PORT=9000
```

5. (optional) Change IDE specific configuration: serverName, idekey

```
   export IDE_SERVERNAME="Any_server_name"
   export IDE_KEY="PHPSTORM"
```

6. Run use it immediately or just restart terminal:

```
   source ~/.bashrc
```

Usage
=====

[](#usage)

1. After installation use phpdebug/phpdebugoff commands to start/stop debugging:

```
  $ phpdebug
  $ php ./script1_to_debug.php
  $ php ./script2_to_debug.php
  $ phpdebugoff
```

2. Or simply use instead of php command to debug only one script

```
  $ phpdebug -dmemory_limit=1G ./script_to_debug.php
```

Configuration options
=====================

[](#configuration-options)

You can use evniroment variables to change default configurations

```
export IDE_ZEND_PORT=10137
export IDE_XDEBUG_PORT=9000
export IDE_KEY="PHPSTORM"
export IDE_SERVERNAME="$(hostname)"
# SSH client IP will be autodetected by default
export IDE_IP="1.2.3.4"
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e334726f7a8ace2895754d503e231d66441c333124683fc506d77284739cbe0?d=identicon)[torinaki](/maintainers/torinaki)

---

Top Contributors

[![dbalabka](https://avatars.githubusercontent.com/u/1269372?v=4)](https://github.com/dbalabka "dbalabka (6 commits)")

---

Tags

cliidenetbeansphpphpstormxdebug

### Embed Badge

![Health badge](/badges/dbalabka-phpdebug-cli/health.svg)

```
[![Health](https://phpackages.com/badges/dbalabka-phpdebug-cli/health.svg)](https://phpackages.com/packages/dbalabka-phpdebug-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
