{"id":33987087,"url":"https://github.com/rushuinet/mt-openapi-php-sdk","last_synced_at":"2025-12-13T05:01:58.923Z","repository":{"id":56964356,"uuid":"126954552","full_name":"rushuinet/mt-openapi-php-sdk","owner":"rushuinet","description":"美团外卖开放平台PHPSDK","archived":false,"fork":false,"pushed_at":"2018-03-27T09:00:00.000Z","size":11,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T07:40:34.564Z","etag":null,"topics":["meituan","php","php-sdk","phpsdk"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rushuinet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-27T08:29:38.000Z","updated_at":"2022-06-05T08:29:47.000Z","dependencies_parsed_at":"2022-08-21T05:30:09.613Z","dependency_job_id":null,"html_url":"https://github.com/rushuinet/mt-openapi-php-sdk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rushuinet/mt-openapi-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushuinet%2Fmt-openapi-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushuinet%2Fmt-openapi-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushuinet%2Fmt-openapi-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushuinet%2Fmt-openapi-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rushuinet","download_url":"https://codeload.github.com/rushuinet/mt-openapi-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushuinet%2Fmt-openapi-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27700444,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["meituan","php","php-sdk","phpsdk"],"created_at":"2025-12-13T05:01:56.892Z","updated_at":"2025-12-13T05:01:58.910Z","avatar_url":"https://github.com/rushuinet.png","language":"PHP","readme":"# PHP SDK 接入指南\n\n## 接入指南\n\n  1. PHP version \u003e= 5.4 \u0026 curl extension support\n  2. 通过composer安装SDK\n  3. 创建Config配置类，填入key，secret和sandbox参数\n  4. 使用sdk提供的接口进行开发调试\n  5. 线上环境将Config中$sandbox值设为false\n\n### 安装\n\n```\nphp\n    composer require ddxq/mt-openapi-php-sdk\n```\n\n### 基本用法\n\n```\nphp\n    use MtOpenApi\\Config\\Config;\n    use MtOpenApi\\Api\\ShopService;\n    \n    //实例化一个配置类\n    $config = new Config($app_key, $app_secret, false);\n    \n    //使用config和token对象，实例化一个服务对象\n    $shop_service = new ShopService($token, $config);\n    \n    //调用服务方法，获取资源\n    $shop = $shop_service-\u003e-\u003eget_shop_ids();\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frushuinet%2Fmt-openapi-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frushuinet%2Fmt-openapi-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frushuinet%2Fmt-openapi-php-sdk/lists"}