{"id":17087914,"url":"https://github.com/staylor/json-dot-php","last_synced_at":"2026-03-17T11:33:03.918Z","repository":{"id":6044810,"uuid":"7269495","full_name":"staylor/json-dot-php","owner":"staylor","description":"Because XML-RPC sucks, and WordPress is backwards-compatible.","archived":false,"fork":false,"pushed_at":"2012-12-21T16:27:46.000Z","size":124,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T21:53:34.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"floridoo/gulp-sourcemaps","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/staylor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-21T05:57:58.000Z","updated_at":"2023-03-23T12:24:36.000Z","dependencies_parsed_at":"2022-09-03T06:51:46.501Z","dependency_job_id":null,"html_url":"https://github.com/staylor/json-dot-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/staylor/json-dot-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staylor%2Fjson-dot-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staylor%2Fjson-dot-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staylor%2Fjson-dot-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staylor%2Fjson-dot-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staylor","download_url":"https://codeload.github.com/staylor/json-dot-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staylor%2Fjson-dot-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30622738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T11:26:08.186Z","status":"ssl_error","status_checked_at":"2026-03-17T11:24:37.311Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T13:35:24.018Z","updated_at":"2026-03-17T11:33:03.902Z","avatar_url":"https://github.com/staylor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## JSON dot PHP\nContributors: wonderboymusic\nTags: json, api, external, data\nRequires at least: 3.0\nTested up to: 3.5\nStable tag: 1.0\n\nBecause XML-RPC sucks, and WordPress is backwards-compatible.\n\n## Description\n\nBrings WordPress into the future by allowing an easy way to expose your data as\nJSON to the outside world. All you do is filter an array of `method_name =\u003e method`\n\nIf you have previously exposed methods via XML-RPC, they will work out of the box here.\n\nExample call:\n\n`http://www.pizza.com/json.php?method=order\u0026topping=pepperoni`\n\nExample method registration:\n\n\n    function order() {\n        do_something( $_GET['topping'] );\n    }\n\n    function add_methods( $methods ) {\n\t    $methods['order'] = 'order';\n\n\t    return $methods;\n    }\n    add_filter( 'json_methods', 'add_methods' );\n\nBack-compat for XML-RPC:\n\n    /**\n     * Any params not named 'method' are passed in order with a numerical index\n     */\n\n    /*\n     * One param:\n     * http://www.pizza.com/json.php?method=order\u0026topping=pepperoni\n     */\n\n    function order() {\n        $args = func_get_args();\n        // $args = array( 0 =\u003e 'pepperoni' )\n    }\n\n    /*\n     * Multiple params:\n     * http://www.pizza.com/json.php?method=order\u0026topping=pepperoni\u0026sauce=extra\n     */\n\n    function order() {\n        $args = func_get_args();\n        // $args = array( 0 =\u003e array( 0 =\u003e 'pepperoni', 1 =\u003e 'extra' )\n    }\n\n\nYou many think the above is bizarre, guess what? It is! That's why I don't like XML-RPC. Too\nweird, too old, too embarassing to ask other people to use.\n\nAlso, you can `GET` or `POST`.\n\n\n## Installation\n\nMove json.php wherever you want it to receive requests. The same directory as WordPress is ideal,\nor in your site's root if you have .htaccess set up to look for WordPress in a subdirectory. Like this:\n\n`RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\\.php)$ /wordpress/$2 [L]`\n\nYour PHP needs to be able to run the `json_encode()` function, that's it.\n\n## Changelog\n\n### 1.0\n* Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaylor%2Fjson-dot-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaylor%2Fjson-dot-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaylor%2Fjson-dot-php/lists"}