add build script for PHP