{"id":21951161,"url":"https://github.com/grephq/php-desktop-library","last_synced_at":"2026-04-22T21:37:13.178Z","repository":{"id":165697661,"uuid":"535322345","full_name":"grephq/php-desktop-library","owner":"grephq","description":"php-desktop library source code","archived":false,"fork":false,"pushed_at":"2022-09-30T23:18:31.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T02:44:39.293Z","etag":null,"topics":["c","gtk3","php-desktop","php-gtk","php-gtk3","php-library","swig"],"latest_commit_sha":null,"homepage":"https://github.com/grephq/php-desktop","language":"C","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/grephq.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":"2022-09-11T14:25:08.000Z","updated_at":"2022-10-01T14:06:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/grephq/php-desktop-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/grephq/php-desktop-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grephq%2Fphp-desktop-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grephq%2Fphp-desktop-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grephq%2Fphp-desktop-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grephq%2Fphp-desktop-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grephq","download_url":"https://codeload.github.com/grephq/php-desktop-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grephq%2Fphp-desktop-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32156604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"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":["c","gtk3","php-desktop","php-gtk","php-gtk3","php-library","swig"],"created_at":"2024-11-29T06:12:29.581Z","updated_at":"2026-04-22T21:37:13.159Z","avatar_url":"https://github.com/grephq.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"How to compile?\r\n---------------\r\n\r\n- Install [swig](https://www.swig.org) from official site or via package manager. e.g.\r\n  ```bash\r\n  # Debian based distributions\r\n  apt install swig\r\n  ```\r\n- Install GTK library. e.g.\r\n  ```bash\r\n  # Debian based distributions\r\n  apt install libgtk-3-dev\r\n  ```\r\n- Install PHP development package. e.g.\r\n  ```bash\r\n  # Debian based distributions\r\n  apt install php7.4-dev\r\n  ```\r\n- Execute the following commands\r\n  ```bash\r\n  swig -php Source.i\r\n  gcc `php-config --includes` `pkg-config --cflags gtk+-3.0` -fpic -c Source_wrap.c Source.c `pkg-config --libs gtk+-3.0`\r\n  gcc `pkg-config --cflags gtk+-3.0` --shared Source_wrap.o Source.o -o \u003cfilename\u003e.so `pkg-config --libs gtk+-3.0`\r\n  ```\r\n- Move the generated file to the ```php-config``` installation directory\r\n  ```bash\r\n  mv \u003cfilename\u003e.so $(php-config --extension-dir)/\r\n  ```\r\n- Copy ```Source.php``` to ```PHP-Desktop/util/ ```\r\n\r\nWindows Support\r\n---------------\r\nWell, in theory it should work on windows after\r\n- Installing swig on windows\r\n- Installing windows version of the gtk library\r\n- Compiling this library to a dll. You might have to download php source code and manually add/edit/remove references to libraries. Goodluck trying to get this to work. \r\n- Move the dll to ```\u003cPHP_INSTALLATION_PATH\u003e/ext/```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrephq%2Fphp-desktop-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrephq%2Fphp-desktop-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrephq%2Fphp-desktop-library/lists"}