{"id":19001735,"url":"https://github.com/ledccn/ledc-printer-sdk","last_synced_at":"2026-04-19T23:30:21.145Z","repository":{"id":207541432,"uuid":"719505101","full_name":"ledccn/ledc-printer-sdk","owner":"ledccn","description":"云打印，PHP语言的SDK，支持^7.0|^7.4|^8.0|^8.1|^8.2","archived":false,"fork":false,"pushed_at":"2023-12-05T08:06:16.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T18:41:43.504Z","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}},"created_at":"2023-11-16T10:07:02.000Z","updated_at":"2023-11-16T10:13:46.000Z","dependencies_parsed_at":"2023-12-04T05:24:17.579Z","dependency_job_id":"f89600c7-495f-4801-bc3e-83da7598d252","html_url":"https://github.com/ledccn/ledc-printer-sdk","commit_stats":null,"previous_names":["ledccn/ledc-printer-sdk"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-printer-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-printer-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-printer-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fledc-printer-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/ledc-printer-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240021792,"owners_count":19735373,"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-11-08T18:12:30.610Z","updated_at":"2026-04-19T23:30:21.084Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 安装 Installation\n\n```sh\ncomposer require ledc/printer-sdk\n```\n\n## 使用 Usage examples\n\n```php\nuse Ledc\\PrinterSdk\\PrinterHelper;\n\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n$config = [\n    'domain' =\u003e 'http://hnshengzhong.cn',\n    'app_id' =\u003e 1,\n    'app_secret' =\u003e '',\n];\n$api = PrinterHelper::getInstance($config);\nvar_dump($printer-\u003econfig());\nvar_dump($printer-\u003eprint('1', 10, false, '[{\"documentID\":\"0123456789\",\"contents\":[{\"data\":{\"recipient\":{\"address\":{\"city\":\"杭州市\",\"detail\":\"良睦路999号乐佳国际大厦2号楼小邮局\",\"district\":\"余杭区\",\"province\":\"浙江省\",\"town\":\"\"},\"mobile\":\"13012345678\",\"name\":\"菜鸟网络\",\"phone\":\"057112345678\"},\"routingInfo\":{\"consolidation\":{\"name\":\"杭州\",\"code\":\"hangzhou\"},\"origin\":{\"name\":\"杭州\",\"code\":\"POSTB\"},\"sortation\":{\"name\":\"杭州\"},\"routeCode\":\"123A-456-789\"},\"sender\":{\"address\":{\"city\":\"杭州市\",\"detail\":\"文一西路1001号阿里巴巴淘宝城5号小邮局\",\"district\":\"余杭区\",\"province\":\"浙江省\",\"town\":\"\"},\"mobile\":\"13012345678\",\"name\":\"阿里巴巴\",\"phone\":\"057112345678\"},\"shippingOption\":{\"code\":\"COD\",\"services\":{\"SVC-COD\":{\"value\":\"200\"},\"TIMED-DELIVERY\":{\"value\":\"SEVERAL-DAYS\"},\"PAYMENT-TYPE\":{\"value\":\"ON-DELIVERY\"},\"SVC-INSURE\":{\"value\":\"1000000\"},\"SVC-PROMISE-DELIVERY\":{\"promise-type\":\"SAMEDAY_DELIVERY\"}},\"title\":\"代收货款\"},\"waybillCode\":\"0123456789\"},\"signature\":\"19d6f7759487e556ddcdd3d499af087080403277b7deed1a951cc3d9a93c42a7e22ccba94ff609976c5d3ceb069b641f541bc9906098438d362cae002dfd823a8654b2b4f655e96317d7f60eef1372bb983a4e3174cc8d321668c49068071eaea873071ed683dd24810e51afc0bc925b7a2445fdbc2034cdffb12cb4719ca6b7\",\"templateURL\":\"http://cloudprint.cainiao.com/cloudprint/template/getStandardTemplate.json?template_id=101\u0026version=4\"}]}]'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-printer-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fledc-printer-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fledc-printer-sdk/lists"}