定制 funmula/biggo-api-php-pms-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

funmula/biggo-api-php-pms-client

Composer 安装命令:

composer require funmula/biggo-api-php-pms-client

包简介

BigGo API PMS PHP Client is a API written in PHP

README 文档

README

🛒 BigGo PMS (Price Monitoring System) 的官方 PHP client,讓你用幾行程式碼就能存取平台、群組與歷史報表。

Packagist PHP License

✨ Features

  • 🔑 自動 token 管理 — 自動處理 OAuth2 client_credentials 換發與過期續期
  • 🏬 平台 / 群組 / 報表 — 完整存取 PMS 資源階層
  • 📦 多格式下載 — 支援 csv / excel / json 報表下載,可直接存檔
  • 🧩 零相依 — 僅使用 PHP 內建的 cURL 與 JSON 擴充

📑 Table of Contents

🚀 Getting Started

📥 Installation

使用 composer:

composer require funmula/biggo-api-php-pms-client

🏗️ Initializing

先從 BigGo API 取得 client id 與 secret,再用以下程式碼建立 API 物件:

use Funmula\BiggoApiPhpPmsClient\BiggoPMSAPI;

$api = new BiggoPMSAPI(
  '<Your client ID>',
  '<Your client secret>'
);

💡 還沒有 client id / secret?請參考 👉 Funmula-Corp/guide

📡 Accessing BigGo PMS API

// 🏬 取得使用者可存取的平台列表
$platformList = $api->getPlatformList();

// 👥 取得平台內的群組列表
$groupList = $api->getGroupList('<Platform ID>');

// 📊 取得平台內的歷史報表列表
$reportList = $api->getReportList('<Platform ID>');

// 📥 取得報表內容,或直接存成檔案
$reportJson = $api->getReport('<Platform ID>', '<Report ID>', 'json');

📖 更多細節請參考 完整文件

🧭 How It Works

🔐 認證流程:SDK 會在建立時自動換發 token,並在過期前自動續期。

sequenceDiagram
    participant App as 🧑‍💻 Your App
    participant SDK as 🐘 BiggoPMSAPI
    participant Auth as 🔐 auth.biggo.com
    participant API as 📡 api.biggo.com/pms

    App->>SDK: new BiggoPMSAPI(clientID, clientSecret)
    Note over SDK: token 不存在或已過期?
    SDK->>Auth: POST /auth/v1/token (client_credentials)
    Auth-->>SDK: access_token + expires_in
    App->>SDK: getPlatformList()
    SDK->>API: GET /platform (Bearer token)
    API-->>SDK: 平台資料
    SDK-->>App: array
Loading

🗂️ 資源階層:平台底下有群組,群組會產生報表,報表可下載成多種格式。

flowchart LR
    A[🏬 Platform] --> B[👥 Group]
    B --> C[📊 Report]
    C --> D{📥 getReport}
    D --> E[📄 CSV]
    D --> F[📈 Excel]
    D --> G[🔧 JSON]
Loading

📚 API Reference

方法 說明 回傳
getPlatformList() 🏬 取得可存取的平台列表 array
getGroupList($platformID) 👥 取得平台內的群組列表 array
getReportList($platformID, $options = []) 📊 取得歷史報表列表 array
getReport($platformID, $reportID, $fileType, $saveAsFile = false, $filePath = '', $fileName = '') 📥 下載報表(csv/excel/json 內容或檔案路徑
isTokenExpired() ⏳ 檢查 token 是否過期 bool

getReportList$options 可帶 sizein_sortin_formpms_groupidstartend

📄 License

MIT

funmula/biggo-api-php-pms-client 适用场景与选型建议

funmula/biggo-api-php-pms-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 funmula/biggo-api-php-pms-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 funmula/biggo-api-php-pms-client 我们能提供哪些服务?
定制开发 / 二次开发

基于 funmula/biggo-api-php-pms-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-19