Code Monkey home page Code Monkey logo

phpenv-conf's Introduction

phpenv-conf

This is a phpenv 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 installation script, which by default automatically installs this plug-in:

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:

git clone https://github.com/src-run/phpenv-conf.git ~/.phpenv/plugins/php-conf

Usage

phpenv conf [OPTION] [<cfgini|extini|extname|conf>]

CLI Options

#add local general-purpose config ini file (ex.: defining timezone)
phpenv conf -c|--cfg-add <cfg-file>

#add a local extension config ini file (ex.: igbinary.ini, tidy.ini, etc)
phpenv conf -x|--ext-add <ext-file>

#create new extension config file from name (containing "extension=<extname>.so")
phpenv conf -X|--ext-new <ext-name>

#remove installed config completely (from active config and available config dirs)
phpenv conf -r|--rm <cfg-name>

#enable installed config (by symlinking from available dir)
phpenv conf -e|--enable <cfg-name>

#disable installed config (by removing enabled symlink)
phpenv conf -d|--disable <cfg-name>

#list both enabled and disabled configs 
phpenv conf -l|--list

#display installed config file contents
phpenv conf -s|--show <cfg-name>

#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

phpenv-conf's People

Contributors

robfrawley avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.