{"id":37007884,"url":"https://github.com/developersharif/php-gui","last_synced_at":"2026-04-04T20:04:01.206Z","repository":{"id":286995963,"uuid":"963228217","full_name":"developersharif/php-gui","owner":"developersharif","description":"Cross-platform GUI development package for PHP using Tcl/Tk","archived":false,"fork":false,"pushed_at":"2025-06-29T14:46:06.000Z","size":16414,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-12T15:55:54.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Tcl","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/developersharif.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,"zenodo":null}},"created_at":"2025-04-09T11:03:12.000Z","updated_at":"2025-12-08T00:13:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb16091b-554b-40e6-9eb4-5a1c4f4d18cd","html_url":"https://github.com/developersharif/php-gui","commit_stats":null,"previous_names":["developersharif/php-gui"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/developersharif/php-gui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fphp-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fphp-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fphp-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fphp-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersharif","download_url":"https://codeload.github.com/developersharif/php-gui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersharif%2Fphp-gui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-14T00:49:24.624Z","updated_at":"2026-04-04T20:04:01.194Z","avatar_url":"https://github.com/developersharif.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP GUI with Tcl/Tk\n\nA robust cross-platform GUI toolkit for PHP that leverages Tcl/Tk via PHP's FFI extension. This library offers a professional API for building graphical interfaces in PHP, seamlessly abstracting Tcl/Tk complexities behind intuitive widget classes.\n\nhttps://github.com/user-attachments/assets/788e6124-5fe0-49c1-a222-c0bb432f509e\n\n\n## Requirements\n\n- **PHP 8.1+** with the **[FFI](https://www.php.net/manual/en/book.ffi.php)** extension enabled.\n- **[Composer](https://getcomposer.org/)** for dependency management.\n\n## Installation\n\n**Install dependencies:**\n\n```bash\ncomposer require developersharif/php-gui\n```\n\n## Project Structure\n\n- **src/**: Core PHP source code\n  - **Widget/**: Contains widget classes (Window, Button, Label, etc.).\n  - **ProcessTCL.php**: Wraps the Tcl interpreter via FFI.\n  - **Application.php**: Manages the event loop and application lifecycle.\n\n## Supported Platforms\n\n- **Linux**: ☑️\n- **Windows**: ☑️\n- **macOS**: ☑️\n\n## Architecture Diagram\n\n\u003cimg src=\"./docs/system.svg\" style=\"width:250px\" alt=\"System Architecture Diagram\"\u003e\n\n## Documentation\n\nFor detailed documentation on each widget and component, please refer to the documentation files in the [docs](./docs) folder:\n\n- [Window](./docs/Window.md)\n- [TopLevel](./docs/TopLevel.md)\n- [Message](./docs/Message.md)\n- [Menubutton](./docs/Menubutton.md)\n- [Menu](./docs/Menu.md)\n- [Frame](./docs/Frame.md)\n- [Entry](./docs/Entry.md)\n- [Combobox](./docs/Combobox.md)\n- [Canvas](./docs/Canvas.md)\n- [Checkbutton](./docs/Checkbutton.md)\n- [Label](./docs/Label.md)\n- [Input](./docs/Input.md)\n- [Button](./docs/Button.md)\n\n## Usage Example\n\nBelow is a sample usage example to get you started:\n\n```php\n\u003c?php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse PhpGui\\Application;\nuse PhpGui\\Widget\\Window;\nuse PhpGui\\Widget\\Label;\nuse PhpGui\\Widget\\Button;\nuse PhpGui\\Widget\\Input;\n\n$app = new Application();\n$window = new Window(['title' =\u003e 'Example', 'width' =\u003e 500, 'height' =\u003e 300]);\n$label = new Label($window-\u003egetId(), ['text' =\u003e 'Hello, PHP GUI!']);\n$label-\u003epack(['pady' =\u003e 20]);\n\n$button = new Button($window-\u003egetId(), [\n    'text' =\u003e 'Click Me',\n    'command' =\u003e function() use ($label) {\n        $label-\u003esetText('Button clicked!');\n    }\n]);\n$button-\u003epack(['pady' =\u003e 10]);\n\n$input = new Input($window-\u003egetId(), ['text' =\u003e 'Type here...']);\n$input-\u003epack(['pady' =\u003e 10]);\n\n$app-\u003erun();\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersharif%2Fphp-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersharif%2Fphp-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersharif%2Fphp-gui/lists"}