{"id":15102729,"url":"https://github.com/plong-wasin/json-schema-to-php-docstring","last_synced_at":"2026-02-07T19:01:58.473Z","repository":{"id":227640840,"uuid":"772004658","full_name":"Plong-Wasin/json-schema-to-php-docstring","owner":"Plong-Wasin","description":"Convert JSON Schema to PHP Array Shapes Docstring simplifies the process of generating PHP documentation from JSON Schema, streamlining development workflows and enhancing code maintainability.","archived":false,"fork":false,"pushed_at":"2024-11-21T09:00:42.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T23:35:09.987Z","etag":null,"topics":["docstring","documentation","json-schema","php","php-docblock","php-document","php-documentation","phpstan"],"latest_commit_sha":null,"homepage":"https://plong-wasin.github.io/json-schema-to-php-docstring/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Plong-Wasin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T10:58:36.000Z","updated_at":"2024-11-21T09:00:46.000Z","dependencies_parsed_at":"2024-04-10T05:26:18.952Z","dependency_job_id":"1e26c56e-2406-44f6-b7f6-571d1b333a3b","html_url":"https://github.com/Plong-Wasin/json-schema-to-php-docstring","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"e5f39b11681cc6e0ce419fce2b4a7d98ee1ebfc6"},"previous_names":["plong-wasin/json-schema-to-php-docstring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Plong-Wasin/json-schema-to-php-docstring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plong-Wasin%2Fjson-schema-to-php-docstring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plong-Wasin%2Fjson-schema-to-php-docstring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plong-Wasin%2Fjson-schema-to-php-docstring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plong-Wasin%2Fjson-schema-to-php-docstring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Plong-Wasin","download_url":"https://codeload.github.com/Plong-Wasin/json-schema-to-php-docstring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Plong-Wasin%2Fjson-schema-to-php-docstring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29204948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docstring","documentation","json-schema","php","php-docblock","php-document","php-documentation","phpstan"],"created_at":"2024-09-25T19:05:29.473Z","updated_at":"2026-02-07T19:01:53.463Z","avatar_url":"https://github.com/Plong-Wasin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema to PHP Array Shapes Docstring Converter\n\nThis project provides a simple tool to convert JSON Schema into PHP array shapes docstring. It helps developers easily generate PHP documentation for their JSON Schema.\n\n## How to Use\n\n1. **Input JSON Data**: Paste your JSON data into [Quicktype](https://app.quicktype.io?l=schema) (a tool for generating data types and converters from JSON to various programming languages).\n\n2. **Set Language to JSON Schema**: In Quicktype, ensure that you select \"JSON Schema\" as the output language.\n\n3. **Adjust Settings**: In the \"Other\" tab of Quicktype, ensure that all options are checked. This ensures the most comprehensive conversion. If you encounter a \"RangeError: Maximum call stack size exceeded\" error after clicking \"Convert\" on converter website, go back to Quicktype and uncheck \"Merge similar classes\" in the \"Other\" tab.\n\n4. **Copy JSON Schema**: Copy the generated JSON Schema from Quicktype.\n\n5. **Access the Converter**: Visit [website](https://plong-wasin.github.io/json-schema-to-php-docstring/).\n\n6. **Paste JSON Schema**: Paste the copied JSON Schema into the designated area on the website.\n\n7. **Convert**: Click on the \"Convert\" button to initiate the conversion process.\n\n8. **Result**: The converted PHP array shapes docstring will be displayed on the website. You can copy this docstring and use it in your PHP documentation.\n\n## Example\n\nHere's a simple example to illustrate the process:\n\n```json\n{\n    \"$schema\": \"http://json-schema.org/draft-06/schema#\",\n    \"type\": \"array\",\n    \"items\": {\n        \"$ref\": \"#/definitions/RootElement\"\n    },\n    \"definitions\": {\n        \"RootElement\": {\n            \"type\": \"object\",\n            \"additionalProperties\": false,\n            \"properties\": {\n                \"name\": {\n                    \"type\": \"string\"\n                },\n                \"age\": {\n                    \"type\": \"integer\"\n                }\n            },\n            \"required\": [\n                \"name\"\n            ],\n            \"title\": \"RootElement\"\n        }\n    }\n}\n```\n\nThis JSON Schema will be converted into the following PHP array shapes docstring:\n\n```text\narray{\n    name: string,\n    age?: int,\n}\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE). Feel free to use, modify, and distribute it according to the terms of the license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplong-wasin%2Fjson-schema-to-php-docstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplong-wasin%2Fjson-schema-to-php-docstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplong-wasin%2Fjson-schema-to-php-docstring/lists"}