{"id":19001718,"url":"https://github.com/ledccn/ledc-hanlian","last_synced_at":"2026-02-03T17:32:10.845Z","repository":{"id":257816164,"uuid":"870003291","full_name":"ledccn/ledc-hanlian","owner":"ledccn","description":"（厦门）汉连跨境ERP系统对接SDK","archived":false,"fork":false,"pushed_at":"2024-11-20T02:01:32.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T16:41:54.546Z","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-10-09T09:20:08.000Z","updated_at":"2024-11-20T02:01:14.000Z","dependencies_parsed_at":"2025-04-16T23:05:30.963Z","dependency_job_id":"8ca145f9-7b38-4ea7-8d6a-107dd129424d","html_url":"https://github.com/ledccn/ledc-hanlian","commit_stats":null,"previous_names":["ledccn/ledc-hanlian"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/ledc-hanlian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-hanlian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-hanlian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-hanlian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-hanlian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/ledc-hanlian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-hanlian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29050804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"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":"2024-11-08T18:12:25.454Z","updated_at":"2026-02-03T17:32:10.826Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 汉连跨境ERP系统对接SDK\n\n## 安装\n\n`composer require ledc/hanlian`\n\n## 使用\n\n开箱即用，只需要传入一个配置，初始化一个实例即可：\n\n```php\nuse Ledc\\HanLian\\Config;\nuse Ledc\\HanLian\\MerchantApi;\n\n$env_config = [\n    'use_test' =\u003e true,\n    'api_host' =\u003e Config::API_HOST_TEST, // 服务器地址\n    'app_key' =\u003e Config::APP_KEY, // 测试环境或正式环境的appKey\n    'app_secret' =\u003e Config::APP_SECRET, // 测试环境或正式环境的appSecret\n    'warehouse_no' =\u003e Config::WARE_HOUSE_NO // 测试环境或正式环境的仓库编码\n];\n$config = new Config($env_config);\n$api = new MerchantApi($config);\n```\n\n在创建实例后，所有的方法都可以有IDE自动补全；例如：\n\n```php\n//新增销售单\n$api-\u003ecreateOrder();\n//销售单审核\n$api-\u003everifyOrder();\n//分销商授权库存查询\n$api-\u003esearchWarehouse();\n//查询销售单\n$api-\u003equeryOrder();\n//查询报关状态单\n$api-\u003ecustomsStatus();\n//报关状态回执（适用于商家自行报关的客户）\n$api-\u003eupdateCustoms();\n```\n\n## 二次开发\n\n配置类：`Ledc\\HanLian\\Config`\n\nHTTP请求客户端基础类：`Ledc\\HanLian\\HttpClient`\n\nAPI客户端：`Ledc\\HanLian\\MerchantApi`\n\n响应类：`Ledc\\HanLian\\HttpResponse`\n\n你可以继承以上几个类，扩展您需要的功能。\n\n## 捐赠\n\n![reward](reward.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-hanlian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fledc-hanlian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-hanlian/lists"}