https://github.com/blixt/php-jsonhttpinterface
PHP JSON via HTTP interface
https://github.com/blixt/php-jsonhttpinterface
Last synced: 5 months ago
JSON representation
PHP JSON via HTTP interface
- Host: GitHub
- URL: https://github.com/blixt/php-jsonhttpinterface
- Owner: blixt
- Created: 2011-02-25T17:13:56.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-02-25T17:25:18.000Z (over 15 years ago)
- Last Synced: 2025-10-11T15:58:40.630Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 89.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP JSON via HTTP interface
## Information
The `JsonHttpInterface` class wraps a class instance and makes all its public
methods callable through HTTP, accepting named parameters (JSON encoded) and
returning the result JSON encoded.
## Examples
Assume this is **myservice.php**:
exec();
?>
Now make an HTTP call to `myservice.php/add?a=1300&b=37` and you will get this
response (indented for readability):
{
"status": "success",
"response": 1337
}
## MIT license
This project is licensed under an [MIT license][].
Copyright © 2011 Andreas Blixt ()
[MIT license]: http://www.opensource.org/licenses/mit-license.php