PHPackages                             xtrime-ru/php-extensions-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. xtrime-ru/php-extensions-toggle

ActiveProject

xtrime-ru/php-extensions-toggle
===============================

Toggle php extensions from cli

v1.1.1(2mo ago)3203↓100%2MITShellPHP &gt;=5.6

Since May 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/xtrime-ru/php-extensions-toggle)[ Packagist](https://packagist.org/packages/xtrime-ru/php-extensions-toggle)[ RSS](/packages/xtrime-ru-php-extensions-toggle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

PHP Extension Toggle
====================

[](#php-extension-toggle)

Toggle php extensions from command line

How it works?
-------------

[](#how-it-works)

- Search for all .ini files in php directory
- Find line where specified extension loaded
- Add or remove `;` at the beginning of the line
- Try restart `fpm`, `apache` and `brew php`

Requirements
------------

[](#requirements)

- Linux or MacOs
- Brew to restart php on mac os
- `service` command to restart php-fpm or apache on linux

Install
-------

[](#install)

```
composer create-project xtrime-ru/php-extensions-toggle && rm -rf php-extensions-toggle/

```

Remove
------

[](#remove)

`rm /usr/local/bin/php-extension`

Usage
-----

[](#usage)

```
php-extensions xdebug on
php-extensions xdebug off
php-extensions apcu on

```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance86

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~355 days

Recently: every ~529 days

Total

7

Last Release

67d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/859f79a275e65537525222630757f26550cf5035f0a29c757282ceaa1936232c?d=identicon)[xtrime](/maintainers/xtrime)

---

Top Contributors

[![xtrime-ru](https://avatars.githubusercontent.com/u/34161928?v=4)](https://github.com/xtrime-ru "xtrime-ru (9 commits)")

### Embed Badge

![Health badge](/badges/xtrime-ru-php-extensions-toggle/health.svg)

```
[![Health](https://phpackages.com/badges/xtrime-ru-php-extensions-toggle/health.svg)](https://phpackages.com/packages/xtrime-ru-php-extensions-toggle)
```

PHPackages © 2026

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