{"id":17172340,"url":"https://github.com/nazmulpcc/php-webview","last_synced_at":"2025-04-13T16:30:53.211Z","repository":{"id":227095808,"uuid":"770202968","full_name":"nazmulpcc/php-webview","owner":"nazmulpcc","description":"Webview extension for PHP","archived":false,"fork":false,"pushed_at":"2024-07-15T12:50:54.000Z","size":60,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T05:50:39.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/nazmulpcc.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-11T06:03:38.000Z","updated_at":"2025-02-25T08:01:52.000Z","dependencies_parsed_at":"2024-07-15T15:23:32.809Z","dependency_job_id":null,"html_url":"https://github.com/nazmulpcc/php-webview","commit_stats":null,"previous_names":["nazmulpcc/php-webview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphp-webview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphp-webview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphp-webview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphp-webview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nazmulpcc","download_url":"https://codeload.github.com/nazmulpcc/php-webview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248743689,"owners_count":21154719,"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":[],"created_at":"2024-10-14T23:36:44.235Z","updated_at":"2025-04-13T16:30:52.975Z","avatar_url":"https://github.com/nazmulpcc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-webview\n\nThis is a simple PHP extension for writing simple, cross-platform GUI applications using PHP. It uses the webview library to create a small, lightweight, cross-platform application that can be used to create simple GUI applications.\n\nInternally, it uses the [webview](https://github.com/webview/webview) library.\n\n# Supported Platforms\n\nIn theory, this extension should work on windows, mac \u0026 linux but only tested on linux \u0026 mac so far.\n\n# Before you start\nYou'll need basic tools for C compilation. On mac, the gnu compiler is recommended. On windows, you can use the Visual Studio compiler.\n\nBefore compiling the extension, you'll need to install the webview library. Example commands for mac are:\n\n```bash\nbrew install gcc git\ngit clone https://github.com/webview/webview.git\ncd webview\n./script/build.sh build\ncp build/library/libwebview.dylib /usr/local/lib\ncp webview.h /usr/local/include\n```\n\nFor linux, you can use the following commands:\n\n```bash\nsudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev\ngit clone https://github.com/webview/webview.git\ncd webview\n./script/build.sh build\nsudo cp build/library/libwebview.so /usr/lib\nsudo cp webview.h /usr/include\n```\n\nIf you face any issue, or you want to work in windows, please consult the [Getting Started](https://github.com/webview/webview?tab=readme-ov-file#getting-started) section of the webview library.\n\n# Installation\n\n## Linux\n\n```bash\nphpize\n./configure\nmake\nsudo make install\n```\n\n## Mac\n\n```bash\nphpize \n./configure CC=gcc-13 CFLAGS=\"-I/usr/local/include\" LDFLAGS=\"-L/usr/local/lib -lwebview\"\nmake\nmake install\n```\n\n# Usage\n\nSee the [webview.stub.php](webview.stub.php) file for the class signature. Also, checkout the [examples](examples) directory for some examples.\n\n# Known Issues\n~~There's a few issues like some random crashes especially during the creation and destruction of the webview object.~~ When using with the [parallel](https://www.php.net/manual/en/book.parallel.php) php extension, in linux sometime it crashes while quitting the threads and in mac, it doesn't work at all with multi threading support.\n The installation process should also be improved. In theory, it should be possible to skip the installation of the webview library.\nIf you face any issue, please open an issue in the repository. If you can fix it, please open a pull request.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazmulpcc%2Fphp-webview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazmulpcc%2Fphp-webview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazmulpcc%2Fphp-webview/lists"}