This allows for building binaries against go-php without needing an accompanying version of the
PHP library. To build a static version of go-php, simply set STATIC=true as a Make flag, e.g.:
make docker-build STATIC=true
The resulting go-php library will be placed in .build/env/GOPATH/pkg/... by default, and can be
used directly, but using the Docker image as a build environment will also work.
This allows for building binaries against
go-php
without needing an accompanying version of the PHP library. To build a static version ofgo-php
, simply setSTATIC=true
as a Make flag, e.g.:The resulting
go-php
library will be placed in.build/env/GOPATH/pkg/...
by default, and can be used directly, but using the Docker image as a build environment will also work.