定制 airlst/troi-sdk-php 二次开发

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

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

airlst/troi-sdk-php

最新稳定版本:1.0.4

Composer 安装命令:

composer require airlst/troi-sdk-php

包简介

PHP SDK for Troi API v2

README 文档

README

This package provides a PHP SDK for the Troi API V2, allowing developers to easily integrate Troi's services into their applications. It is built using Troi's official OpenAPI specifications and is built with the help of crescat-io/saloon-sdk-generator tool.

Installation

composer require airlst/troi-sdk-php

Usage

use Troi\V2\TroiSDK;

$connector = new TroiSDK(
    config('services.troi.customer'),
    config('services.troi.username'),
    config('services.troi.password'),
);

$response = $connector->clients()->fetchAllTenantsFormerlyClients();

Password is “API v2 / Troi App” token that can be found in the Troi security center

Contributing

/app folder contains the Laravel Zero console application that is used to generate the SDK. You can use build command to download a fresh version of the OpenAPI specification and generate the SDK files in the /build folder:

php application build

Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-06-11