{"id":37557363,"url":"https://github.com/vdhoangson/zmp-openapi-php","last_synced_at":"2026-01-16T09:02:04.781Z","repository":{"id":332476532,"uuid":"1057850323","full_name":"vdhoangson/zmp-openapi-php","owner":"vdhoangson","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-14T02:14:04.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-14T05:44:04.532Z","etag":null,"topics":["zalo","zmp"],"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/vdhoangson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["vdhoangson"]}},"created_at":"2025-09-16T09:38:16.000Z","updated_at":"2026-01-14T02:13:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vdhoangson/zmp-openapi-php","commit_stats":null,"previous_names":["vdhoangson/zmp-openapi-php"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vdhoangson/zmp-openapi-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhoangson%2Fzmp-openapi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhoangson%2Fzmp-openapi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhoangson%2Fzmp-openapi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhoangson%2Fzmp-openapi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdhoangson","download_url":"https://codeload.github.com/vdhoangson/zmp-openapi-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhoangson%2Fzmp-openapi-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["zalo","zmp"],"created_at":"2026-01-16T09:02:01.685Z","updated_at":"2026-01-16T09:02:04.696Z","avatar_url":"https://github.com/vdhoangson.png","language":"PHP","funding_links":["https://github.com/sponsors/vdhoangson","https://buymeacoffee.com/vdhoangson"],"categories":[],"sub_categories":[],"readme":"# ZMP OpenAPI PHP SDK\n\n\u003e Một thư viện PHP giúp kết nối và thao tác với hệ thống MiniApp của ZaloPlatform một cách dễ dàng.\n\n## 1. Yêu cầu hệ thống\n\n- PHP \u003e= 7.4\n- Composer\n- GuzzleHTTP (đã có trong `composer.json`)\n\n## 2. Cài đặt\n\n```bash\ncomposer require vdhoangson/zmp-openapi-php\n```\n\n## 3. Sử dụng nhanh\n\n### Khởi tạo client\n\n```php\nuse Vdhoangson\\ZmpOpenApi\\Classes\\PartnerClient;\n$proxy = [\n    \"host\" =\u003e \"127.0.0.1\",\n    \"port\" =\u003e 123\n];\n\n$client = new PartnerClient(\n    \"{YOUR-PARTNER-API-KEY}\",\n    \"{YOUR-PARTNER-ID}\",\n    $proxy, // optional\n);\n```\n\n### Gọi API lấy danh sách miniapp\n\n```php\n$response = $client-\u003egetMiniApps();\nprint_r($response);\n```\n\n### Triển khai miniapp (upload file zip)\n\n```php\n$deployApp = [\n    'file' =\u003e '/path/to/file.zip',\n    'miniAppId' =\u003e 123,\n    'name' =\u003e 'Tên app',\n    'description' =\u003e 'Mô tả app'\n];\n$response = $client-\u003edeployMiniApp($deployApp);\n```\n\n## 4. Các hàm phổ biến\n\n- Lấy danh sách miniapp: `getMiniApps(array $params = [])`\n- Tạo miniapp: `createMiniApp(array $appInfo)`\n- Triển khai miniapp: `deployMiniApp(array $deployApp)`\n- Yêu cầu publish: `requestPublishMiniApp(array $requestPublishApp)`\n- Publish: `publishMiniApp(array $publishApp)`\n- Quản lý kênh thanh toán: `listPaymentChannels`, `createPaymentChannel`, `updatePaymentChannel`\n- Quản lý API domain: `listApiDomain`, `createApiDomain`, `updateApiDomain`\n\nTài liệu từ Zalo: [https://miniapp.zaloplatforms.com/documents/open-apis/]\n\n## 5. Lưu ý sử dụng\n\n- Hàm `validateInit()` sẽ kiểm tra cấu hình, nếu thiếu sẽ báo lỗi.\n- Có thể truyền proxy khi khởi tạo hoặc dùng hàm `setProxy($proxy)`.\n- Các hàm trả về mảng gồm `error`, `message` và dữ liệu (nếu có).\n\n## 6. Đóng góp \u0026 hỗ trợ\n\n- Đóng góp: Tạo pull request hoặc issue trên repository.\n- Hỗ trợ: Liên hệ team phát triển hoặc mở issue.\n\nYou can sponsor this project through [GitHub Sponsors](https://github.com/sponsors/vdhoangson):\n\n[![GitHub Sponsors](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge\u0026logo=GitHub-Sponsors\u0026logoColor=#EA4AAA)](https://github.com/sponsors/vdhoangson)\n\n### ☕ Buy Me a Coffee\n\nSupport ongoing development with a coffee:\n\n[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://buymeacoffee.com/vdhoangson)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdhoangson%2Fzmp-openapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdhoangson%2Fzmp-openapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdhoangson%2Fzmp-openapi-php/lists"}