{"id":37233307,"url":"https://github.com/php-lsys/simhash","last_synced_at":"2026-01-15T03:53:30.936Z","repository":{"id":62549106,"uuid":"161604104","full_name":"php-lsys/simhash","owner":"php-lsys","description":"simhash for php extension : 判断文本相似度","archived":true,"fork":false,"pushed_at":"2022-04-08T13:48:46.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T14:00:10.014Z","etag":null,"topics":["php","simhash"],"latest_commit_sha":null,"homepage":"","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/php-lsys.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}},"created_at":"2018-12-13T07:59:55.000Z","updated_at":"2024-04-20T15:20:25.000Z","dependencies_parsed_at":"2022-11-03T01:00:44.659Z","dependency_job_id":null,"html_url":"https://github.com/php-lsys/simhash","commit_stats":null,"previous_names":["php-lsys/simhash"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/php-lsys/simhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-lsys%2Fsimhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-lsys%2Fsimhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-lsys%2Fsimhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-lsys%2Fsimhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-lsys","download_url":"https://codeload.github.com/php-lsys/simhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-lsys%2Fsimhash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28442357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["php","simhash"],"created_at":"2026-01-15T03:53:30.363Z","updated_at":"2026-01-15T03:53:30.925Z","avatar_url":"https://github.com/php-lsys.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"文本相似度比较(simhash算法)\n===\n\n\u003e PHP扩展方式实现,支持 php\u003e=7.0\n\n\u003e php-src 为PHP方式实现 默认用php方式，编译扩展后使用扩展\n\n\u003e 使用示例  [test.php](./test.php) \n\n\n#### linux or mac 下编译\n\n```shell\ncd simhash\nphpize \u0026\u0026 ./configure\nmake \u0026\u0026 make install\n```\n\n#### windows 下编译\n\n\u003e [php 8.1 windows dll](https://github.com/shanliu/simhash/releases)\n\n\u003e load build env \n\n```\n打开 [x64|x86] Native Tools Command Prompt for VS 2017 编译命令行\n加载PHP编译变量 \\your-php-sdk-binary-tools-dir\\bin\\phpsdk_setvars.bat \n```\n\n```cmd\ncd your_php_src # PHP 源码目录 下载 simhash 源码到 ext/simhash 下\nbuildconf.bat\nconfigure --disable-all --enable-cli --enable-simhash=shared \nnmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-lsys%2Fsimhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-lsys%2Fsimhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-lsys%2Fsimhash/lists"}