{"id":18348869,"url":"https://github.com/jphp-group/jtgc","last_synced_at":"2026-04-18T06:34:26.026Z","repository":{"id":68021659,"uuid":"133059344","full_name":"jphp-group/JTGC","owner":"jphp-group","description":"This utility helps to create a JavaFX GUI layout from json or array.","archived":false,"fork":false,"pushed_at":"2018-05-11T20:18:32.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T23:44:08.239Z","etag":null,"topics":["gui","javafx","jphp","json","ui"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jphp-group.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-11T15:49:46.000Z","updated_at":"2024-10-19T13:42:07.000Z","dependencies_parsed_at":"2023-07-21T01:45:09.351Z","dependency_job_id":null,"html_url":"https://github.com/jphp-group/JTGC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2FJTGC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2FJTGC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2FJTGC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2FJTGC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jphp-group","download_url":"https://codeload.github.com/jphp-group/JTGC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphp-group%2FJTGC/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259204809,"owners_count":22821160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["gui","javafx","jphp","json","ui"],"created_at":"2024-11-05T21:19:33.905Z","updated_at":"2026-04-18T06:34:21.000Z","avatar_url":"https://github.com/jphp-group.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JTGC\nThis utility helps to create a JavaFX GUI layout from json. \n\n\n## Example\n\nphp class :\n```php\nuse gui;\nuse jtgc\\parser\\JTGC;\nuse std;\n\nclass Form extends UXForm\n{\n    public function show()\n    {\n        $this-\u003elayout = new JTGC(fs::parse(\"layout.json\"))-\u003eget([ 300, 300 ]); // [ 300, 300 ] is a size of panel\n        parent::show(); // show form\n\n        $this-\u003emySuperButton-\u003eon(\"click\", fn() =\u003e {\n            UXDialog::show(\"mySuperButton is clicked!\"); // show dialog\n        });\n    }\n}\n```\nlayout.json :\n```json\n[\n    {\n        \"_\": \"button\",\n        \"text\": \"test JTGC\",\n        \"size\": [50, 70],\n        \"id\": \"mySuperButton\"\n    }\n]\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphp-group%2Fjtgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjphp-group%2Fjtgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphp-group%2Fjtgc/lists"}