standards
authorMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 14:22:28 +0000 (16:22 +0200)
committerMichael Wallner <mike@php.net>
Tue, 29 Sep 2015 14:22:28 +0000 (16:22 +0200)
.editorconfig [new file with mode: 0644]
AUTHORS [new file with mode: 0644]
CONTRIBUTING.md [new file with mode: 0644]
LICENSE
README.md
THANKS [new file with mode: 0644]
package.xml

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..84c9933
--- /dev/null
@@ -0,0 +1,16 @@
+; see http://editorconfig.org
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+charset = utf-8
+trim_trailing_whitespace = true
+
+[*.md]
+trim_trailing_whitespace = false
+
+[*.json]
+indent_style = space
+indent_size = 4
diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..67bbd91
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
+Michael Wallner <mike@php.net>
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644 (file)
index 0000000..968bd44
--- /dev/null
@@ -0,0 +1,39 @@
+# Contributor Code of Conduct
+
+As contributors and maintainers of this project, and in the interest of
+fostering an open and welcoming community, we pledge to respect all people who
+contribute through reporting issues, posting feature requests, updating
+documentation, submitting pull requests or patches, and other activities.
+
+We are committed to making participation in this project a harassment-free
+experience for everyone, regardless of level of experience, gender, gender
+identity and expression, sexual orientation, disability, personal appearance,
+body size, race, ethnicity, age, religion, or nationality.
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery
+* Personal attacks
+* Trolling or insulting/derogatory comments
+* Public or private harassment
+* Publishing other's private information, such as physical or electronic
+  addresses, without explicit permission
+* Other unethical or unprofessional conduct.
+
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct. By adopting this Code of Conduct, project
+maintainers commit themselves to fairly and consistently applying these
+principles to every aspect of managing this project. Project maintainers who do
+not follow or enforce the Code of Conduct may be permanently removed from the
+project team.
+
+This code of conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community.
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by opening an issue or contacting one or more of the project maintainers.
+
+This Code of Conduct is adapted from the
+[Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
+available at http://contributor-covenant.org/version/1/2/0/.
diff --git a/LICENSE b/LICENSE
index b49d8ed16f5ebf192d806348695aeb0f2e2546b5..f52c89a6784501332be46a0941c49b5769386091 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2015, Michael Wallner <mike@iworks.at>.
+Copyright (c) 2015, Michael Wallner <mike@php.net>.
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
index cc8b8acae2ed22c6745287a137b8f1bac1877636..f1cd90e3e242c151ada9cc8acf8a2805d9f7735c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,18 +1,46 @@
-# PECL :: json_post [![Build Status](https://travis-ci.org/m6w6/ext-json_post.svg?branch=master)](https://travis-ci.org/m6w6/ext-sjon_post)
+# ext-json_post
+
+[![Build Status](https://travis-ci.org/m6w6/ext-json_post.svg?branch=master)](https://travis-ci.org/m6w6/ext-json_post)
 
 JSON POST handler 
 
-## About
+## Documentation
+
+See the [online markdown reference](https://mdref.m6w6.name/json_post).
+
+## Installing
+
+### PECL
+
+       pecl install json_post
+
+### PHARext
+
+Watch out for [PECL replicates](https://replicator.pharext.org?json_post)
+and pharext packages attached to [releases](./releases).
+
+### Checkout
+
+       git clone github.com:m6w6/ext-json_post
+       cd ext-json_post
+       /path/to/phpize
+       ./configure --with-php-config=/path/to/php-config
+       make
+       sudo make install
+
+## ChangeLog
+
+A comprehensive list of changes can be obtained from the
+[PECL website](https://pecl.php.net/package-changelog.php?package=json_post).
+
+## License
 
-This tiny extension provides a PHP content type handler for JSON to PHP's
-form data parser. If the `Content-Type` of an incoming request is `text/json`
-or `application/json`, the JSON contents of the request body will by parsed
-into `$_POST`.
+ext-json_post is licensed under the 2-Clause-BSD license, which can be found in
+the accompanying [LICENSE](./LICENSE) file.
 
-This extension does not provide any constants, functions or classes.
+## Contributing
 
-### INI Entries
+All forms of contribution are welcome! Please see the bundled
+[CONTRIBUTING](./CONTRIBUTING.md) note for the general principles followed.
 
-* `json_post.flags = 1`  
-  Takes any combination of JSON_ flags which will be passed to `json_decode()`.  
-  The default is `JSON_OBJECT_AS_ARRAY`.
+The list of past and current contributors is maintained in [THANKS](./THANKS).
diff --git a/THANKS b/THANKS
new file mode 100644 (file)
index 0000000..183910d
--- /dev/null
+++ b/THANKS
@@ -0,0 +1,5 @@
+Thanks go to the following people, who have contributed to this project:
+
+Remi Collet
+Peter Cowburn
+Hannes Magnusson
index 213d9e054bed7ac79c05141861bc18ed58286903..9fc28d64d33145ecb5eca1df49eac750abd33c10 100644 (file)
@@ -11,9 +11,9 @@
  <channel>pecl.php.net</channel>
  <summary>JSON POST handler</summary>
  <description><![CDATA[
-This extension provides a PHP content type handler for "application/json" and 
-"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 
+This extension provides a PHP content type handler for "application/json" and
+"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.
@@ -33,14 +33,18 @@ This extension does not provide any constants, functions or classes.
   <release>stable</release>
   <api>stable</api>
  </stability>
- <license>BSD, revised</license>
+ <license uri="http://copyfree.org/content/standard/licenses/2bsd/license.txt">BSD-2-Clause</license>
  <notes><![CDATA[
  * Fix: json_post.flags=2 ignored with php7 (Remi)
 ]]></notes>
  <contents>
   <dir name="/">
-   <file role="doc" name="LICENSE"/>
+   <file role="doc" name="AUTHORS"/>
+   <file role="doc" name="CONTRIBUTING.md"/>
    <file role="doc" name="CREDITS"/>
+   <file role="doc" name="LICENSE"/>
+   <file role="doc" name="README.md"/>
+   <file role="doc" name="THANKS"/>
    <file role="src" name="config.m4"/>
    <file role="src" name="config.w32"/>