Google App Engine PHP Runtime Extension
This repository contains the GAE PHP runtime extension, which enables emulation of the App Engine environment for local development.
-
Install Protocol Buffer complier on your platform, following the C++ Installation Instructions.
-
Generate C++ source and header files for remote_api.proto and urlfetch_service.proto.
protoc --cpp_out=. remote_api.proto protoc --cpp_out=. urlfetch_service.proto
-
Familiarize yourself with the PHP extension building process, and run the following commands. Set
<include_path>
and<lib_path>
to the absolute path to the protobuf headers and libraries installed in the previous step, usually/usr/local/include
and/usr/local/lib
.phpize ./configure --enable-gae --with-protobuf_inc=<include_path> --with-protobuf_lib=<lib_path> make
-
The compiled extension can be found in
modules/gae_runtime_module.so
. Use the--php_gae_extension_path
flag to load the extension when running the development server.
Have a patch that will benefit this project? Awesome! Follow these steps to have it accepted.
- Please sign our Contributor License Agreement.
- Fork this Git repository and make your changes.
- Create a Pull Request
- Incorporate review feedback to your changes.
- Accepted!
All files in this repository are under the Apache v2 unless noted otherwise.