Recentemente, abri o código-fonte de uma ferramenta que uso para gerenciar várias versões de PHP em um único sistema.
Atualmente suporta a construção de PHP 5.2. , 5.3. e 5.4. * com suporte para módulos Apache.
Para instalar rapidamente o phpswitch, execute este comando:
$ curl https://raw.github.com/jubianchi/phpswitch/master/bin/installer | sudo php
# Creates the phpswitch workspace
$ phpswitch init
Verifique o código-fonte no github e / ou leia – me para obter mais informações.
phpswitch version 0.1
Usage:
[options] command [arguments]
Options:
--help -h Display this help message.
--quiet -q Do not output any message.
--verbose -v Increase verbosity of messages.
--version -V Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction -n Do not ask any interactive question.
Available commands:
help Displays help for a command
init Initializes PhpSwitch environment
list Lists commands
config
config:info Displays configuration
php
php:config Get or set configuration
php:current Displays current PHP version
php:install Installs a PHP version
php:list Lists PHP versions
php:switch Switch PHP version