{"id":17172342,"url":"https://github.com/nazmulpcc/phpqt","last_synced_at":"2026-02-27T09:44:26.972Z","repository":{"id":176008247,"uuid":"651359605","full_name":"nazmulpcc/phpqt","owner":"nazmulpcc","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-19T04:47:50.000Z","size":110,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-10T15:23:45.844Z","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":null,"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":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,"zenodo":null}},"created_at":"2023-06-09T04:29:35.000Z","updated_at":"2025-08-31T08:06:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbf168bf-2888-42da-90fb-3e1bc07462b7","html_url":"https://github.com/nazmulpcc/phpqt","commit_stats":{"total_commits":50,"total_committers":4,"mean_commits":12.5,"dds":"0.45999999999999996","last_synced_commit":"60c0a4826125072c2f9e9fdc87a4b072528492f2"},"previous_names":["nazmulpcc/phpqt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nazmulpcc/phpqt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphpqt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphpqt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphpqt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphpqt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nazmulpcc","download_url":"https://codeload.github.com/nazmulpcc/phpqt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazmulpcc%2Fphpqt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29889883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T08:34:21.514Z","status":"ssl_error","status_checked_at":"2026-02-27T08:32:38.035Z","response_time":57,"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":[],"created_at":"2024-10-14T23:36:44.943Z","updated_at":"2026-02-27T09:44:26.956Z","avatar_url":"https://github.com/nazmulpcc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP QT\n\nThis is a \"Proof of concept\" of a [QT](https://qt.io) binding for PHP 8+.\n\n## Steps to Run\n\nThis is a PHP extension developed in C++ and currently tested on MacOS and Linux. Since PHP doesn't support C++ and the extension development process has very limited documentation, I've used [PHP-CPP](https://www.php-cpp.com/) library to develop this POC. You can run the following commands to compile PHP-CPP,\n\n```sh\ngit clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git\ncd PHP-CPP\ngit checkout master\nmake \u0026\u0026 sudo make install\n```\n\nThis will clone, compile \u0026 install PHP-CPP in your system. You will also need `make` and `g++` commands installed.\n\nNow before you compile this extension, you need to install `qt6` and headers. This can be done with,\n\n```sh\nbrew install qt@6\n# OR for arch-based distro\nsudo pacman -S qt6-base\n```\n\nGo ahead and compile this repo,\n\n```sh\ngit clone https://github.com/nazmulpcc/phpqt.git\ncd phpqt\nmake \u0026\u0026 sudo make install\n```\n\nThis will compile the extension to a file called *phpqt.so* and put it in php's extension directory (`php-config --extension-dir`). This will also create a ini file called `phpqt.ini` (which loads the extension). If for some reason the *Makefile* cannot put these files in the correct location, you can manually copy them to the right location.\n\n## Usage\nOnce installed, you can see which classes and methods are available from [here](https://github.com/nazmulpcc/phpqt-demo/tree/master/phpqt). A demo using this extension is available [here](https://github.com/nazmulpcc/phpqt-demo).\n\n## Known Issues\n\n- In some cases, automatic extension installation fails, if that happens to you, you can put the `.so` and `.ini` files in the correct location manually.\n- In my experiments, the extension is very stable on MacOS (M1). In linux, it crashes 1 out of 4 times. This used to be a lot worse but improved gradually.\n- Only a handful of classes from the QT framework have been ported to PHP since this is just a Proof of concept.\n- In some cases, using multiple threads via the `Thread` classes causes memory error.\n\n\n## WHY??!!\nWhy not? PHP is a very matured language and you can do some wild things with PHP. You can create [a websocket server](http://socketo.me/docs/websocket), [machine learning](https://php-ml.readthedocs.io/en/latest/), high performance [async IO library](https://reactphp.org/), [proxy server](https://github.com/leproxy/leproxy), [async imap client](https://github.com/nazmulpcc/imap) and many many more. So why not a native desktop application?\n\n## Future Plan\nThis POC was created because I wanted to create a few small gui workflows and I did not want to use electron or another JS based solution. If I find sufficient interest from the PHP community or I need this myself in the future, I will continue investing time and see what it becomes. Personally, I beleive there is a lot of potential here as PHP is very easy to learn, fun to work with and it has a HUGE eco system.\nFor me, I will probably implement things like, printing support, a few more widget classes, bluetooth connectivity, qt's network module etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazmulpcc%2Fphpqt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazmulpcc%2Fphpqt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazmulpcc%2Fphpqt/lists"}