php-build

Builds PHP so that multiple versions can be used side by side.

  • 所有者: php-build/php-build
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

php-build Build Status

php-build is a utility for building versions of PHP to use them side by side with each other. The overall structure is loosly borrowed from Sam Stephenson's ruby-build.

Do you like php-build? You can buy me a beer by Gittipp-ing. Consider also Gittipp-ing one of the awesome contributors.

Overview

Installation

As phpenv plugin

With phpenv via installer

It's the standard way: installs phpenv in $HOME/.phpenv (default
$PHPENV_ROOT value).

curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \, bash

See more on https://github.com/phpenv/phpenv-installer: install phpenv +
php-build/php-build (and
other plugins), updating all of them when you want to!

With phpenv manually

Locate your phpenv directory:

% ls $HOME/.phpenv

Clone the Git repository into phpenv plugins directory:

% git clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build

Now you can use php-build as phpenv plugin, as follows:

% phpenv install <definition>

The built version will be installed into $HOME/.phpenv/versions/<definition>.

As standalone php-build

Clone the Git Repository:

% git clone git://github.com/php-build/php-build.git

Then go into the extracted/cloned directory and run:

% ./install.sh

This installs php-build to the default prefix /usr/local.

To install php-build to an other location than /usr/local set the PREFIX
environment variable:

% PREFIX=$HOME/local ./install.sh

If you don't have permissions to write to the prefix, then you have to run
install.sh as superuser, either via su -c or via sudo.

Contributing

Issue reports and pull requests are always welcome.

All contributions will be reviewed and merged by the core team:

See CONTRIBUTING.md.

Changelog

See CHANGELOG.md.

License

php-build is released under the MIT License.

主要指标

概览
名称与所有者php-build/php-build
主编程语言Shell
编程语言Shell (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2011-08-12 18:09:20
推送于2025-06-06 07:22:56
最后一次提交2025-06-06 16:21:54
发布数17
最新版本名称v0.10.0 (发布于 2013-06-13 11:37:47)
第一版名称v0.1.0 (发布于 2011-12-28 10:54:22)
用户参与
星数1k
关注者数29
派生数153
提交数1.2k
已启用问题?
问题数223
打开的问题数31
拉请求数464
打开的拉请求数3
关闭的拉请求数103
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?