Compile scripts used to build PHP binaries
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7e363f5 Sep 2, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci/packaging Dockerfile: fix package name Mar 18, 2017
LICENSE Add license Aug 18, 2016 Update dependency Sep 2, 2017
codefresh.yml Setup Codefresh Mar 18, 2017 Update dependency Sep 2, 2017 PHP: bump to 7.0.17 Mar 18, 2017

Script for building Windows PHP packages

The script need to be ran on Linux. Dependencies: aria2, bsdtar

Script for building and installing PHP on Linux

Run this to build and install PHP configure to match your environment. You need basic compiler package group, build dependencies and curl, sudo, tar.

The following is just for reference:

  • For Debian-based distros: libssl-dev autoconf pkg-config curl libedit-dev libsqlite3-dev libxml2-dev libcurl4-openssl-dev libyaml-dev libzip-dev libgmp-dev

  • For RPM-based-distros: autoconf pkg-config curl libedit-devel libsqlite3-devel libxml2-devel libyaml-devel libcurl-devel libzip-last-devel libgmp-devel

  • If you are using Ubuntu 17.04 and above, configure can not locate the libcurl, so you need to sudo ln -s /usr/include/x86_64-linux-gnu/curl /usr/include

Environment variable "$PREFIX" can be set to install to other locations (must be absolute path). The default is /usr/local, which most time has the highest priority in the PATH.

Home based install with phpbrew

After installing phpbrew, you can build with the following flags:

phpbrew install -j $(nproc) latest +neutral-cgi+mbstring+bcmath+sockets+curl+editline+openssl+zlib+pcntl+zts
phpbrew ext install yaml latest
phpbrew ext install pthreads latest
phpbrew ext install weakref latest