From 2daf698fb6d53d3100aff5ba1d00530753213cd4 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 29 Sep 2015 16:22:28 +0200 Subject: [PATCH] standards --- .editorconfig | 16 ++++++++++++++++ AUTHORS | 1 + CONTRIBUTING.md | 39 ++++++++++++++++++++++++++++++++++++++ LICENSE | 2 +- README.md | 50 ++++++++++++++++++++++++++++++++++++++----------- THANKS | 5 +++++ package.xml | 14 +++++++++----- 7 files changed, 110 insertions(+), 17 deletions(-) create mode 100644 .editorconfig create mode 100644 AUTHORS create mode 100644 CONTRIBUTING.md create mode 100644 THANKS diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..84c9933 --- /dev/null +++ b/.editorconfig @@ -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 index 0000000..67bbd91 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Michael Wallner diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..968bd44 --- /dev/null +++ b/CONTRIBUTING.md @@ -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 b49d8ed..f52c89a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2015, Michael Wallner . +Copyright (c) 2015, Michael Wallner . All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/README.md b/README.md index cc8b8ac..f1cd90e 100644 --- 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 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 diff --git a/package.xml b/package.xml index 213d9e0..9fc28d6 100644 --- a/package.xml +++ b/package.xml @@ -11,9 +11,9 @@ pecl.php.net JSON POST handler stable stable - BSD, revised + BSD-2-Clause - + + + + + -- 2.30.2