From: Michael Wallner Date: Mon, 2 Mar 2015 11:12:49 +0000 (+0100) Subject: json_post X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c89650ba08a67540f323d6813ac43ae2e3aa1ffa;p=mdref%2Fmdref-json_post json_post --- c89650ba08a67540f323d6813ac43ae2e3aa1ffa 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