Re-implement prismic/php-sdk, hoping that they'll merge my pull-request https://github.com/prismicio/php-kit/pull/9

Signed-off-by: Adam Engebretson <adam@enge.me>