{"id":30368494,"url":"https://github.com/ledccn/webman-yilianyun","last_synced_at":"2026-01-20T16:28:25.566Z","repository":{"id":307126225,"uuid":"1028317595","full_name":"ledccn/webman-yilianyun","owner":"ledccn","description":"易联云打印开放平台SDK，webman基础插件","archived":false,"fork":false,"pushed_at":"2025-07-30T03:04:45.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-25T17:47:09.037Z","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":"2025-07-29T10:55:19.000Z","updated_at":"2025-08-04T05:52:15.000Z","dependencies_parsed_at":"2025-07-29T17:03:18.105Z","dependency_job_id":"bcdf470e-1f51-45d5-ba1b-31ab57edccbb","html_url":"https://github.com/ledccn/webman-yilianyun","commit_stats":null,"previous_names":["ledccn/webman-yilianyun"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/webman-yilianyun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwebman-yilianyun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwebman-yilianyun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwebman-yilianyun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwebman-yilianyun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/webman-yilianyun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fwebman-yilianyun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"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":"2025-08-20T01:34:29.829Z","updated_at":"2026-01-20T16:28:25.552Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介\n\n易联云打印开放平台SDK，webman基础插件\n\n## 安装\n\n`composer require ledc/yilianyun`\n\nwebman v2版本使用本插件时，需要安装缓存组件：`composer require -W webman/cache`\n\n## 配置与使用\n\n可以在 `.env` 文件中配置环境变量\n\n```conf\nYLY_CLIENT_ID=易联云开放平台：应用ID\nYLY_CLIENT_SECRET=易联云开放平台：应用密钥\nYLY_MACHINE_CODE=易联云打印机：终端号\nYLY_DEVELOP_ID=易联云开放平台：开发者ID（非必填）\nYLY_ENABLED=1\nYLY_DEBUG=0\n```\n\n使用单例模式调用：\n\n```php\nuse Ledc\\YiLianYun\\YiLianYun;\n\n// 文本打印\n$result = YiLianYun::getInstance()-\u003eprint('测试打印', time());\n\n// 图片打印\n$result = YiLianYun::getInstance()-\u003epicturePrint('https://www.baidu.com/img/bd_logo1.png', time());\n\n// 直接调用POST方法，底层自动处理签名逻辑、AccessToken。\n$result = YiLianYun::getInstance()-\u003epost('易联云接口地址', '易联云接口数组参数', true, true);\n```\n\n## 使用说明\n\n```php\nuse Ledc\\YiLianYun\\Config;\nuse Ledc\\YiLianYun\\YiLianYun;\nuse support\\Cache;\nuse support\\Log;\n\n$config = new Config([\n    'client_id' =\u003e '易联云开放平台：应用ID',\n    'client_secret' =\u003e '易联云开放平台：应用密钥',\n    'machine_code_prod' =\u003e '【生产】易联云打印机：终端号（非必填）',\n    'machine_code_test' =\u003e '【测试】易联云打印机：终端号（非必填）',\n    'develop_id' =\u003e '易联云开放平台：开发者ID（非必填）',\n    'timeout' =\u003e 10,\n    'enabled' =\u003e true,\n    'debug' =\u003e true,\n]);\n\n// 创建易联云SDK对象实例\n$client = new YiLianYun($config, Cache::store(), Log::channel());\n\n// 在创建SDK对象实例后，所有的方法都可以由IDE自动补全；例如：\n\n// 文本打印\n$result = $client-\u003eprint('测试打印', time());\nvar_dump($result);\n\n// 图片打印\n$result = $client-\u003epicturePrint('https://www.baidu.com/img/bd_logo1.png', time());\nvar_dump($result);\n\n// 直接调用POST方法，底层自动处理签名逻辑、AccessToken。\n$result = $client-\u003epost('易联云接口地址', '易联云接口数组参数', true, true)\nvar_dump($result);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fwebman-yilianyun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fwebman-yilianyun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fwebman-yilianyun/lists"}