deuill / go-php

PHP bindings for the Go programming language (Golang)
MIT License
925 stars 105 forks source link

Update PHP versions, allow building static version of PHP in Docker #55

Closed deuill closed 6 years ago

deuill commented 6 years ago

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.