{"id":22266848,"url":"https://github.com/qbhy/code-scanner-php","last_synced_at":"2025-07-28T10:33:40.335Z","repository":{"id":56938732,"uuid":"103495160","full_name":"qbhy/code-scanner-php","owner":"qbhy","description":"扫码器 ","archived":false,"fork":false,"pushed_at":"2017-09-15T06:32:59.000Z","size":4508,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-13T13:52:23.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/qbhy.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":"2017-09-14T06:34:49.000Z","updated_at":"2018-03-13T14:19:23.000Z","dependencies_parsed_at":"2022-08-21T06:50:30.095Z","dependency_job_id":null,"html_url":"https://github.com/qbhy/code-scanner-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbhy%2Fcode-scanner-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbhy%2Fcode-scanner-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbhy%2Fcode-scanner-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbhy%2Fcode-scanner-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qbhy","download_url":"https://codeload.github.com/qbhy/code-scanner-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227897257,"owners_count":17836735,"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-12-03T10:24:18.092Z","updated_at":"2024-12-03T10:24:18.737Z","avatar_url":"https://github.com/qbhy.png","language":"PHP","readme":"# code-scanner\n扫码器\n\n## 功能特性\n1. 支持二维码和条形码两种扫描\n\n## 环境需求\n\n1. 系统 `zbar` 扩展\n\n### 如何安装 `zbar` ? \n1. mac : `brew install zbar`\n2. linux : `apt install imagemagick libzbar-dev`\n3. windows :  [传送门](https://www.baidu.com/s?ie=utf-8\u0026f=8\u0026rsv_bp=1\u0026tn=baidu\u0026wd=windows%20%E5%AE%89%E8%A3%85zbar\u0026oq=windows%2520zbar%2520%25E5%25AE%2589%25E8%25A3%2585\u0026rsv_pq=dd09af4e0003d2c5\u0026rsv_t=3d54uTul6LHome6h3jaZVlnF1b0zsCpPHU0zbRf4bNtVzDA3IPnFZvxyTso\u0026rqlang=cn\u0026rsv_enter=1\u0026inputT=1441\u0026rsv_sug3=40\u0026rsv_sug1=17\u0026rsv_sug7=000\u0026rsv_sug2=0\u0026rsv_sug4=2066\u0026rsv_sug=2)\n\n## 安装\n```bash\ncomposer require 96qbhy/code-scanner\n```\n\n## 使用\n```php\nrequire 'vendor/autoload.php';\n\nuse Qbhy\\CodeScanner\\CodeScanner;\n\nvar_dump(CodeScanner::scan('./bar.png'));\n```\n\u003e 目前只支持 mac 和 linux 平台， windows 等我编译好在添加 `windows_scanner.exe`。\n\n[https://github.com/96qbhy/code-scanner-php](https://github.com/96qbhy/code-scanner-php)  \n96qbhy@gmail.com","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbhy%2Fcode-scanner-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqbhy%2Fcode-scanner-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbhy%2Fcode-scanner-php/lists"}