Simplified API built on top of PHP SAPI
C++ TeX C PHP Python CSS Other
Latest commit b269630 May 14, 2014 @jamesgpearce jamesgpearce Update README
Failed to load latest commit information.
src quick patch to phpembed Oct 4, 2009
CREATING_DISTRIBUTION updated to export a couple of more files Mar 26, 2008
NEWS documentation update Mar 24, 2008
README Update README May 14, 2014
SConstruct phpembed: moving current source under trunk Feb 15, 2007 version update / cleaned up EXTRA_DIST and added Mar 26, 2008 preliminary autoconf/automake/libtool funtionality for phpembed build… Aug 27, 2007


Archived Repo
This is an archived project and is no longer supported or updated by Facebook. 
Please do not file issues or pull-requests against this repo. If you wish to 
continue to develop this code, we recommend you fork it.

Proceed and be bold!


PHPEMBED (Simplified API built on top of PHP SAPI)

Andrew Bosworth (

Last Modified: 2008-Mar-23

Phpembed is distributed under the Phpembed open source software license.
Please see the included LICENSE file.

For more information on phpmbed usage see documentation in ./docs

Installing phpembed


php 5.x must be installed with --enable-embed option turned on.
[ To enable building of embedded SAPI library ]

Building phpembed library:
NOTE: The phpembed library is just a more accessible and simplified library 
built on top of of the PHP SAPI.

If you are building from the first time out of the source repository, you will
need to generate the configure scripts.  From the top directory, do:


Once the configure scripts are generated, phpembed can be configured.
From the top directory, do:

        ./configure  [ default shared mode]

Run ./configure --help to see other configuration options

Make phpembed:


Install phpembed as superuser:

        make install

Note: To run bootstrap you may need the following:

        automake / aclocal -- 1.9.5
        autoconf -- 2.59
        autoheader -- 2.59
        libtool -- 1.5.16