Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtrime-ru/php-extensions-toggle
Toggle php extensions from command line
https://github.com/xtrime-ru/php-extensions-toggle
Last synced: 2 months ago
JSON representation
Toggle php extensions from command line
- Host: GitHub
- URL: https://github.com/xtrime-ru/php-extensions-toggle
- Owner: xtrime-ru
- License: mit
- Created: 2020-05-02T12:21:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-10T19:00:55.000Z (about 3 years ago)
- Last Synced: 2024-09-27T23:42:54.240Z (3 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Extension Toggle
Toggle php extensions from command line## 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
- Linux or MacOs
- Brew to restart php on mac os
- `service` command to restart php-fpm or apache on linux## Install
```
composer create-project xtrime-ru/php-extensions-toggle && rm -rf php-extensions-toggle/
```## Remove
```rm /usr/local/bin/php-extension```## Usage
```
php-extensions xdebug on
php-extensions xdebug off
php-extensions apcu on
```