# Embedding API docs

- Thread: https://externals.io/message/73649
- Original archive: https://news-web.php.net/php.internals/73649
- Started by johannes@schlueters.de on 2014-04-09T13:49:39+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #73649 — johannes@schlueters.de — 2014-04-09T13:49:39+00:00

URL: https://externals.io/message/73649#73649

see sapi/embed/php_embed.h that header has high level wrappers for starting up and creating a request context. If you need lower levvel thing you can copy from there ...

johannes (sorry for top posting - on mobile)

Kevin Ingwersen <ingwie2000@googlemail.com> wrote:

>Hey everyone.
>
>I am working on a project into which I wish to integrate PHP. I am almost done porting PHP into my build system, so now I can go and utilize it together with PHP-CPP. However - PHP-CPP does not seem to offer ways to start the engine itself, really. So, is there any embedding API that I need to take note of?
>The resulting php-build will have the following options applied: —with-pthreads —enable-pthreads=static —enable-maintainer-zts —enable-curl=static —disable-shared —enable-static —enable-embed=static
>
>Kind regards, Ingwie!
