https://github.com/syniol/xyo-sdk-php
XYO Financial SDK for PHP
https://github.com/syniol/xyo-sdk-php
Last synced: 5 months ago
JSON representation
XYO Financial SDK for PHP
- Host: GitHub
- URL: https://github.com/syniol/xyo-sdk-php
- Owner: syniol
- License: apache-2.0
- Created: 2025-08-14T12:49:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-29T20:40:22.000Z (10 months ago)
- Last Synced: 2025-08-29T22:38:33.704Z (10 months ago)
- Language: PHP
- Size: 18.7 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XYO Financial SDK for PHP
 
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](https://syniol.com) 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](https://packagist.org/packages/xyo/sdk) package management.
```shell
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__:
```php
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__:
```php
$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)___:
```php
$enrichmentCollectionResult = $client->enrichTransactionCollection([
new EnrichmentRequest("Costa PickUp", "GB"),
new EnrichmentRequest("STRBUKS GREENWICH", "GB")
]);
echo $enrichmentCollectionResult->id;
echo $enrichmentCollectionResult->link;
```
__Payment Transaction Collection Status__:
```php
$enrichmentCollectionStatusResult = $client->enrichTransactionCollectionStatus($enrichmentCollectionResult->id);
echo $enrichmentCollectionStatusResult->getStatus();
```
#### Credits
Copyright © 2025 Syniol Limited. All rights reserved.