https://github.com/src-run/phpenv-conf
https://github.com/src-run/phpenv-conf
bash phpenv phpenv-plugin
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/src-run/phpenv-conf
- Owner: src-run
- License: mit
- Created: 2016-07-02T06:01:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T10:36:14.000Z (over 7 years ago)
- Last Synced: 2025-01-29T18:24:04.483Z (5 months ago)
- Topics: bash, phpenv, phpenv-plugin
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# phpenv-conf
This is a [`phpenv`](https://github.com/src-run/phpenv.git) plug-in providing PHP configuration (ini file)
management commands. On first invocation a `conf.d-available/` path is created parallel to the original
`conf.d/`, which provides the location this script places ini files when calling with `--[cfg|ext]-add`.
Actually enabling the ini file is done by calling `-e` or `--enable`, which symlinking the file from
`conf.d-available/` into `conf.d/`.## Installation
__Automated Installation:__ If starting from scratch, you can use the [`phpenv`](https://github.com/src-run/phpenv.git)
installation script, which by default automatically installs this plug-in:```bash
curl -s https://raw.githubusercontent.com/src-run/phpenv/master/bin/phpenv-installer-remote.bash | bash
```__Manual Installation:__ Alternatively, you can clone the repository yourself into your `~/.phpenv/plugins` directory:
```bash
git clone https://github.com/src-run/phpenv-conf.git ~/.phpenv/plugins/php-conf
```## Usage
```bash
phpenv conf [OPTION] []
```### CLI Options
```bash
#add local general-purpose config ini file (ex.: defining timezone)
phpenv conf -c|--cfg-add#add a local extension config ini file (ex.: igbinary.ini, tidy.ini, etc)
phpenv conf -x|--ext-add#create new extension config file from name (containing "extension=.so")
phpenv conf -X|--ext-new#remove installed config completely (from active config and available config dirs)
phpenv conf -r|--rm#enable installed config (by symlinking from available dir)
phpenv conf -e|--enable#disable installed config (by removing enabled symlink)
phpenv conf -d|--disable#list both enabled and disabled configs
phpenv conf -l|--list#display installed config file contents
phpenv conf -s|--show#show version of php-congig (including current git hash)
phpenv conf -V|--version#display help dialoge message (in fact, this message you'r reading here!)
phpenv conf -h|--help|help
```