GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - php-build/php-build: Builds PHP so that multiple versions can be used side by side.

BranchesTags
Open more actions menu

Latest commit

 

History

1,270 Commits
1,270 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
man
man
 
 
share/php-build
share/php-build
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Vagrantfile
Vagrantfile
 
 
build-docs.sh
build-docs.sh
 
 
build-openssl-1.0.sh
build-openssl-1.0.sh
 
 
install-dependencies.sh
install-dependencies.sh
 
 
install.sh
install.sh
 
 
make-release.sh
make-release.sh
 
 
run-tests.sh
run-tests.sh
 
 
uninstall.sh
uninstall.sh
 
 
vagrant-init.sh
vagrant-init.sh
 
 

Repository files navigation

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.

Usage:

PHP_BUILD_CONFIGURE_OPTS="--with-gmp" PHP_BUILD_INSTALL_EXTENSION="raphf igbinary pecl_http redis ssh2 xdebug" phpenv install -v -k 8.5.2

The example adds gmp support and installs the latest pecl extensions raphf, igbinary, pecl_http, redis, ssh2, xdebug with verbosity enabled (-v) and it doesn't run make clean (-k) after installing PHP version 8.5.2.

Overview

  • Installation
  • Contributing
  • Changelog
  • License

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 https://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 https://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.

  • Freenode channel: #php-build
  • Google group: https://groups.google.com/forum/#!forum/php-build-developers

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

  • Graham Campbell
  • Rogerio Prado de Jesus
  • Loïc Frering
  • Christoph Hochstrasser

See CONTRIBUTING.md.

Changelog

See CHANGELOG.md.

License

php-build is released under the MIT License.

About

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

php-build.github.io

Topics

hacktoberfest

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

1.1k stars

Watchers

27 watching

Forks

157 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.