Skip to content

Akollade/php-version-switcher.plugin.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

php-version-switcher.plugin.zsh

This is an Oh My Zsh plugin to switch PHP version from .php-version.

Install

cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/Akollade/php-version-switcher.plugin.zsh php-version-switcher

Edit ~/.zshrc to enable the plugin and set the PHP path template:

PHP_PATH_TEMPLATE="/opt/php__PHP_VERSION__/bin"
plugins=(... php-version-switcher)

Example for PHP_PATH_TEMPLATE:

  • Infomaniak : PHP_PATH_TEMPLATE="/opt/php__PHP_VERSION__/bin"
  • Homebrew : PHP_PATH_TEMPLATE="$(brew --prefix)/opt/php@__PHP_VERSION__/bin"

Inspired by

About

Oh My Zsh plugin to switch PHP version from .php-version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages