定制 xyo/sdk 二次开发

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

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

xyo/sdk

最新稳定版本:1.1.0

Composer 安装命令:

composer require xyo/sdk

包简介

XYO Financial Official SDK for PHP

README 文档

README

workflow workflow

PHP (Elephant) Mascot
Official PHP Mascot for XYO.Financial Generated by Adobe AI and Imagined by Syniol Limited

This SDK is official XYO.Financial and maintained by Syniol Limited for PHP Programming Language. The minimum requirement is PHP version: 7.1.33. It can be utilised for Trial and Premium accounts, given that a valid API key is available to connect to and access the Enrichment services.

Quickstart Guide

First you need to install the XYO SDK for PHP ecosystem via Packagist package management.

composer require xyo/sdk

Client is an entry point to use the SDK. You need a valid API Key obtainable from https://xyo.financial/dashboard

Create a Client:

use XYO\SDK\Client;
use XYO\SDK\ClientConfig;
use XYO\SDK\Enrichment\DTO\EnrichmentRequest;

$client = new Client(new ClientConfig("YourAPIKeyFromXYO.FinancialDashboard"))

Enrich a Single Payment Transaction:

$enrichmentResult = $client->enrichTransaction(new EnrichmentRequest("Costa PICKUP", "GB"));

echo $enrichmentResult->merchant;
echo $enrichmentResult->description;
echo $enrichmentResult->categories;
echo $enrichmentResult->logo;

Enrich Payment Transaction Collection (Bulk Enrichment):

$enrichmentCollectionResult = $client->enrichTransactionCollection([
    new EnrichmentRequest("Costa PickUp", "GB"),
    new EnrichmentRequest("STRBUKS GREENWICH", "GB")
]);

echo $enrichmentCollectionResult->id;
echo $enrichmentCollectionResult->link;

Payment Transaction Collection Status:

$enrichmentCollectionStatusResult = $client->enrichTransactionCollectionStatus($enrichmentCollectionResult->id);

echo $enrichmentCollectionStatusResult->getStatus();

Credits

Copyright © 2025 Syniol Limited. All rights reserved.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-08-18