{"id":36975609,"url":"https://github.com/duxphp/bank-card","last_synced_at":"2026-01-13T22:05:23.316Z","repository":{"id":56973451,"uuid":"112574056","full_name":"duxphp/bank-card","owner":"duxphp","description":"根据银行卡号找到卡信息","archived":false,"fork":true,"pushed_at":"2017-11-30T17:08:52.000Z","size":644,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T22:39:59.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/duxphp/bank-card","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"zhuzhichao/bank-card-info","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duxphp.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-11-30T06:31:24.000Z","updated_at":"2019-08-21T12:25:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/duxphp/bank-card","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/duxphp/bank-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duxphp%2Fbank-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duxphp%2Fbank-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duxphp%2Fbank-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duxphp%2Fbank-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duxphp","download_url":"https://codeload.github.com/duxphp/bank-card/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duxphp%2Fbank-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":"2026-01-13T22:05:22.629Z","updated_at":"2026-01-13T22:05:23.307Z","avatar_url":"https://github.com/duxphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Bank Card Info\n\n项目根据[zhuzhichao](https://github.com/zhuzhichao/bank-card-info)进行修改补充用于项目\n\n\n根据银行卡号获取银行信息（银行名称, 信用卡/借记卡, 银行LOGO 等）, 供任何 PHP 框架或者原生代码使用.\n\n\n```\nBankCard::info('6225700000000000');\n\n// 将得到\narray (size=6)\n  'validated'    =\u003e true\t\t\t// 是否验证成功\n  'bank'         =\u003e 'CEB',\t\t\t// 银行标识\n  'bankName'     =\u003e '中国光大银行' ,\t// 银行名称\n  'bankImg'      =\u003e 'https://apimg.alipay.com/combo.png?d=cashier\u0026t=CEB',  // 银行LOGO\n  'cardType'     =\u003e 'CC',\t\t// 卡类型\n  'cardTypeName' =\u003e '信用卡',\t// 卡类型名称\n```\n\n##特点\n\n1. 不配置和使用数据库，妈妈再也不用担心配置问题了\n2. 使用简单，功能专（dān）注（yī）\n3. 使用[composer](https://getcomposer.org/)进行安装管理，国际标准，方便快捷，即安即用，随时更新数据库\n\n##Install\n\n`composer require \"duxphp/bank-card\"`。\n\n##Usage\n\n\n1.安装该插件\n\n2.加载插件\n\n3.然后开始在你的项目里面使用了 `BankCard::info('6225700000000000', bool)` 获取银行卡信息.\n```\n// 返回结果\narray (size=6)\n  'validated'    =\u003e true\n  'bank'         =\u003e 'CEB',\n  'bankName'     =\u003e '中国光大银行' ,\n  'bankImg'      =\u003e 'https://apimg.alipay.com/combo.png?d=cashier\u0026t=CEB',\n  'cardType'     =\u003e 'CC',\n  'cardTypeName' =\u003e '信用卡',\n```\n\n4.获取银行列表信息 `BankCard::getBankList()` , 如下\n```\narray (size=165)\n  'SRCB'   =\u003e  '深圳农村商业银行',\n  'BGB'    =\u003e  '广西北部湾银行',\n  'SHRCB'  =\u003e  '上海农村商业银行',\n  'BJBANK' =\u003e  '北京银行',\n  'WHCCB'  =\u003e  '威海市商业银行',\n  'BOZK'   =\u003e  '周口银行',\n  ...\n  'LYBANK' =\u003e  '洛阳银行',\n  'GDB'    =\u003e  '广东发展银行',\n  'ZBCB'   =\u003e  '齐商银行',\n  'CBKF'   =\u003e  '开封市商业银行',\n```\n\n5.获取银行名称 `BankCard::getBankNameList()` , 如下\n```\narray (size=165)\n  0 =\u003e '深圳农村商业银行',\n  1 =\u003e '广西北部湾银行',\n  2 =\u003e '上海农村商业银行',\n  3 =\u003e '北京银行',\n  ...\n  125 =\u003e '广东发展银行',\n  126 =\u003e '齐商银行',\n  127 =\u003e '开封市商业银行',\n  more elements...\n```\n\n6.单独获取银行LOGO `BankCard::getBankImg('ABC')` 或者手动复制`src/logo`目录下logo\n```\nhttps://apimg.alipay.com/combo.png?d=cashier\u0026t=ABC\n```\n\n7.小图标获取,手动复制`src/small_logo`目录下logo，小图标为人工ps处理，只用于规则内银行，如有兴趣可以添加后提交给我\n\n##鸣谢\n支付宝提供的这么好用的接口 ^_^\n\n##Contributing\n有什么新的想法和建议，欢迎提交[issue](https://github.com/zhuzhichao/bank-card-info/issues)或者[Pull Requests](https://github.com/zhuzhichao/bank-card-info/pulls)。\n\n\n##License\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduxphp%2Fbank-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduxphp%2Fbank-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduxphp%2Fbank-card/lists"}