{"id":22941790,"url":"https://github.com/zacksleo/ec-sdk","last_synced_at":"2025-04-01T20:49:59.267Z","repository":{"id":57089043,"uuid":"197529539","full_name":"zacksleo/ec-sdk","owner":"zacksleo","description":"电商平台 SDK：苏宁，淘宝，京东","archived":false,"fork":false,"pushed_at":"2019-08-07T03:39:13.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T13:47:45.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zacksleo.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":"2019-07-18T06:53:28.000Z","updated_at":"2019-08-07T03:39:14.000Z","dependencies_parsed_at":"2022-08-20T15:31:13.219Z","dependency_job_id":null,"html_url":"https://github.com/zacksleo/ec-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fec-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fec-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fec-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fec-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacksleo","download_url":"https://codeload.github.com/zacksleo/ec-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709912,"owners_count":20821298,"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-12-14T13:45:03.298Z","updated_at":"2025-04-01T20:49:59.244Z","avatar_url":"https://github.com/zacksleo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e ec-sdk \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e 电商平台 SDK.\u003c/p\u003e\n\n\n## Installing\n\n```shell\n$ composer require zacksleo/ec-sdk -vvv\n```\n\n## Usage\n\n```php\n    try {\n        $config = [\n            'key'        =\u003e 'key',\n            'secret'     =\u003e 'secret',\n            'debug'      =\u003e false,\n            'log' =\u003e[\n                'file'       =\u003e __DIR__.'/suning.log',\n                'level'      =\u003e 'error',\n                'permission' =\u003e 0777,\n            ]\n        ];\n        $code = Factory::suning($config)-\u003eexpress-\u003ename2code('申通快递');\n        var_dump($code);\n    } catch (\\Zacksleo\\SuningSdk\\SuningException $exception) {\n        //苏宁返回错误\n        var_dump($exception-\u003egetMessage());\n    } catch (\\Hanson\\Foundation\\Exception\\HttpException $exception) {\n        //Http 请求发生错误\n        var_dump($exception-\u003egetMessage());\n    } catch (\\Exception $exception) {\n        $exception-\u003egetMessage();\n        var_dump($exception-\u003egetMessage());\n    }\n```\n\n## Contributing\n\nYou can contribute in one of three ways:\n\n1. File bug reports using the [issue tracker](https://github.com/zacksleo/ec-sdk/issues).\n2. Answer questions or fix bugs on the [issue tracker](https://github.com/zacksleo/ec-sdk/issues).\n3. Contribute new features or update the wiki.\n\n_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fec-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacksleo%2Fec-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fec-sdk/lists"}