From c89650ba08a67540f323d6813ac43ae2e3aa1ffa Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 2 Mar 2015 12:12:49 +0100 Subject: [PATCH] json_post --- json_post.md | 31 +++++++++++++++++++++++++++++++ json_post.mdref | 1 + 2 files changed, 32 insertions(+) create mode 100644 json_post.md create mode 100644 json_post.mdref diff --git a/json_post.md b/json_post.md new file mode 100644 index 0000000..548cefd --- /dev/null +++ b/json_post.md @@ -0,0 +1,31 @@ +# pecl/json_post + +## About: + +JSON POST handler. + +Parse JSON request bodies into `$_POST`. + +## What it does: + +This tiny extension provides a PHP content type handler for `text/json` to PHP's form data parser. + +If the `Content-Type` of an incoming request is `text/json`, the JSON contents of the request body will by parsed into `$_POST`. + +## Installation: + +This extension is hosted at [PECL](http://pecl.php.net) and can be installed with [PEAR](http://pear.php.net)'s pecl command: + + # pecl install json_post + +## Dependencies: + +* ext/json + +## INI Directives: + +* json_post.flags = 1; json_decode() flags + * JSON_OBJECT_AS_ARRAY = 1 + * JSON_BIGINT_AS_STRING = 2 + * JSON_OBJECT_AS_ARRAY|JSON_BIGINT_AS_STRING = 3 + diff --git a/json_post.mdref b/json_post.mdref new file mode 100644 index 0000000..03d5c40 --- /dev/null +++ b/json_post.mdref @@ -0,0 +1 @@ +https://github.com/m6w6/mdref-json_post/edit/master/%s.md -- 2.30.2