{"id":19001713,"url":"https://github.com/ledccn/ledc-pospal","last_synced_at":"2026-01-31T11:32:32.485Z","repository":{"id":257801207,"uuid":"863342059","full_name":"ledccn/ledc-pospal","owner":"ledccn","description":"Pospal银豹收银系统开放平台非官方SDK","archived":false,"fork":false,"pushed_at":"2024-09-29T04:46:37.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-17T11:36:59.980Z","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/ledccn.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":"2024-09-26T06:15:26.000Z","updated_at":"2024-09-29T04:46:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"07e53c8c-5d34-4f86-b3c0-22bfca9fd9cb","html_url":"https://github.com/ledccn/ledc-pospal","commit_stats":null,"previous_names":["ledccn/ledc-pospal"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/ledc-pospal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-pospal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-pospal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-pospal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-pospal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/ledc-pospal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-pospal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28940455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"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-11-08T18:12:24.528Z","updated_at":"2026-01-31T11:32:32.474Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pospal银豹收银系统开放平台非官方SDK\n\n## 安装\n`composer require ledc/pospal`\n\n## 使用\n\n开箱即用，只需要传入一个配置，初始化一个实例即可：\n\n```php\nuse Ledc\\Pospal\\Certificate;\nuse Ledc\\Pospal\\CustomerApi;\n\n$config = [\n    'appId' =\u003e '银豹appId',\n    'appKey' =\u003e '银豹appKey',\n    'urlPrefix' =\u003e '银豹接口地址前缀',\n];\n$certificate = new Certificate($config);\n$customerApi = new CustomerApi($certificate);\n```\n\n在创建实例后，所有的方法都可以有IDE自动补全；例如：\n\n```php\n//添加会员\n$customerApi-\u003eadd();\n//根据会员号查询会员\n$customerApi-\u003equeryByNumber();\n//根据会员手机号查询会员\n$customerApi-\u003equeryByTel();\n//根据会员在银豹系统的唯一标识查询\n$customerApi-\u003equeryByUid();\n//修改会员密码\n$customerApi-\u003eupdatePassword();\n//修改会员余额积分\n$customerApi-\u003eupdateBalancePointByUid();\n```\n\n## 二次开发\n\n配置与凭证类：`Ledc\\Pospal\\Certificate`\n银豹请求客户端：`Ledc\\Pospal\\HttpClient`\n银豹响应类：`Ledc\\Pospal\\HttpResponse`\n\n你可以继承`Ledc\\Pospal\\Certificate`或`Ledc\\Pospal\\HttpClient`，扩展您需要的功能。\n\n## 捐赠\n\n![reward](reward.png)\n\n## 官方文档\nhttps://pospal.cn/openplatform/openplatform.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-pospal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fledc-pospal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-pospal/lists"}