From: Hannes Magnusson Date: Wed, 4 Mar 2015 19:54:46 +0000 (-0800) Subject: Initial commit X-Git-Tag: v1.0.0RC1~5 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=commitdiff_plain;h=5c72938056611ccba2a36bc2332e21c69855ae96 Initial commit --- 5c72938056611ccba2a36bc2332e21c69855ae96 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c495e35 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# PECL :: json_post + +JSON POST handler + +## About + +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`. + +This extension does not provide any constants, functions or classes. + +### INI Entries + +* `json_post.flags = 1` + Takes any combination of JSON_ flags which will be passed to `json_decode()`. + The default is `JSON_OBJECT_AS_ARRAY`.