PHPackages                             grasmash/xdebug-toggle - 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. grasmash/xdebug-toggle

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

grasmash/xdebug-toggle
======================

Simple CLI tools to toggle xdebug easily.

1.0.0(8y ago)161.5k4[1 issues](https://github.com/grasmash/xdebug-toggle/issues)MITPHPPHP &gt;=5.6CI failing

Since May 22Pushed 4y agoCompare

[ Source](https://github.com/grasmash/xdebug-toggle)[ Packagist](https://packagist.org/packages/grasmash/xdebug-toggle)[ RSS](/packages/grasmash-xdebug-toggle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7a458ce5e1bddf96c2748cbd39e9f11832c2dacb12d0b86e1934bbcaed49aab2/68747470733a2f2f7472617669732d63692e6f72672f677261736d6173682f7864656275672d746f67676c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/grasmash/xdebug-toggle)

Xdebug Toggle
=============

[](#xdebug-toggle)

A PHP-based CLI tool for quickly enabling and/or disabling xdebug.

This tool simply "comments out" the line in your php.ini file that loads the xDebug Zend extension.

### Available commands:

[](#available-commands)

CommandDescriptiontoggleEnables or disables xDebug, depending on state.enableEnables xDebug.disableDisables xDebug.statusPrints current status of xDebug.### Example:

[](#example)

```
xdebug toggle
xdebug enable
xdebug disable
xdebug status

```

### Installation

[](#installation)

You may use `Composer` to install this library. It is suggested that you install it globally and add Composer's global `bin` directory to your system's `$PATH`.

```
composer global require grasmash/xdebug-toggle --update-no-dev

```

### Configuration

[](#configuration)

If your extension doesn't match the `xdebug.so` name (e.g. you're on Windows), you can set a environment variable to correct file name: `XDEBUG_EXTENSION_FILE_NAME`.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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.

###  Release Activity

Cadence

Every ~287 days

Recently: every ~431 days

Total

7

Last Release

1554d ago

Major Versions

0.0.4 → 1.0.02017-06-21

1.0.0 → 2.x-dev2022-02-10

PHP version history (2 changes)0.0.0PHP &gt;=5.6

2.x-devPHP ^7.4 | ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f0a67482f1db7967656e00f2671283ce1aa4ee8ecb934104bfaf39774a9d563?d=identicon)[grasmash](/maintainers/grasmash)

---

Top Contributors

[![grasmash](https://avatars.githubusercontent.com/u/539205?v=4)](https://github.com/grasmash "grasmash (21 commits)")[![danepowell](https://avatars.githubusercontent.com/u/1984514?v=4)](https://github.com/danepowell "danepowell (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/grasmash-xdebug-toggle/health.svg)

```
[![Health](https://phpackages.com/badges/grasmash-xdebug-toggle/health.svg)](https://phpackages.com/packages/grasmash-xdebug-toggle)
```

###  Alternatives

[humbug/php-scoper

Prefixes all PHP namespaces in a file or directory.

7963.0M35](/packages/humbug-php-scoper)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[notamedia/console-jedi

Console application for CMS Bitrix

8942.5k1](/packages/notamedia-console-jedi)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[gskema/prestashop-installer

PrestaShop application installer.

142.2k](/packages/gskema-prestashop-installer)

PHPackages © 2026

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