{"id":19168915,"url":"https://github.com/steveleetn91/php-ext","last_synced_at":"2026-04-13T00:09:15.094Z","repository":{"id":183176377,"uuid":"669702743","full_name":"steveleetn91/php-ext","owner":"steveleetn91","description":"PHP Extension support for PHP 7.4 greater than","archived":false,"fork":false,"pushed_at":"2023-07-26T00:53:13.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-01-03T23:24:42.394Z","etag":null,"topics":["c","cake","codeigniter","laravel","nuke","php","php-ext","php-library","phpinternal","stevelee","vietnam","wordpress","zend","zendapi"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steveleetn91.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":"2023-07-23T06:35:34.000Z","updated_at":"2023-07-26T08:40:37.000Z","dependencies_parsed_at":"2024-11-09T09:44:22.201Z","dependency_job_id":"0b25915a-c629-4c30-97c3-cf1c4e84601b","html_url":"https://github.com/steveleetn91/php-ext","commit_stats":null,"previous_names":["steveleetn91/php-ext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveleetn91%2Fphp-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveleetn91%2Fphp-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveleetn91%2Fphp-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveleetn91%2Fphp-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steveleetn91","download_url":"https://codeload.github.com/steveleetn91/php-ext/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240250350,"owners_count":19771775,"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":["c","cake","codeigniter","laravel","nuke","php","php-ext","php-library","phpinternal","stevelee","vietnam","wordpress","zend","zendapi"],"created_at":"2024-11-09T09:44:18.172Z","updated_at":"2026-04-13T00:09:15.046Z","avatar_url":"https://github.com/steveleetn91.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-ext\nThis is a php extensions, I will continue update and share it for everyone. Currently it only support PHP 7.4 or greater than 7.4.\n\n## VThread \n\nVThread is extension support for you run code PHP in environment C (native code). It's best if your function need resolve a lots of logic and take a long time for finish. That time is you need use VThread to optimize process.\n\n### How to install? \n\nFirst step you need download file `.so` on folder `./vthread` after that add this line into your `php.ini` file: \n    `extension=\"/path/to/file.so\"`\n\n### How to check working? \nCreate a new file and use phpinfo to check\n\n![alt text](https://github.com/steveleetn91/php-ext/blob/dev/document/phpinfo.PNG?raw=true)\n\n\n### Code for test [nukethread]\n\n![alt text](https://github.com/steveleetn91/php-ext/blob/dev/document/vthread.PNG?raw=true)\n\nThis function same with Fibers, I mean callback will execute in child thread but it's keep asyn. So why we need use it? \nWhen you implement if appear errors then main process keep continue and only stop on child process. And it'll support execute\nyour function callback on native code.\n\nOn PHP:\n\n```\n        \u003c?php\n\n        try {\n            \n            nukethread(function () {\n                printf(\"Done \");\n                sleep(1);\n            });\n        }catch(\\Exception $e) {\n            print_r($e-\u003egetMessage());\n        }\n\n        ?\u003e\n```\n\n### Code for test [nukethreadOnlyThread]\n\n\nIt'll support execute your function callback on native code and only one thread.\n\nOn PHP:\n\n```\n        \u003c?php\n\n        try {\n            \n            echo nukethreadOnlyThread(function () {\n                return rand(1,999999999999999999);\n            });\n        }catch(\\Exception $e) {\n            print_r($e-\u003egetMessage());\n        }\n\n        ?\u003e\n```\n\n# Issue \n\nIf you need anything, please create new issue `https://github.com/steveleetn91/php-ext/issues`. \n\nOne more thing if you enjoy and wanna I continue made extensions support for PHP, so let's me star for this repository.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteveleetn91%2Fphp-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteveleetn91%2Fphp-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteveleetn91%2Fphp-ext/lists"}