yield-tech/sdk-php

The official Yield SDK for PHP

v0.7.1 2025-07-09 03:32 UTC

This package is auto-updated.

Last update: 2025-07-09 03:34:44 UTC


README

The official Yield SDK for PHP.

Documentation

Installation

composer require yield-tech/sdk-php

Usage

// For security, don't save the actual key in your code or repo
$client = new YieldTech\SdkPhp\Client(getenv('YIELD_API_KEY'));

// Fetch an existing order
$order = $client->order->fetch('ord_...');
print_r($order->customer->registeredName);

// Or create a new one
$newOrder = $client->order->create([
    'customer_id' => 'org_...',
    'total_amount' => 'PHP 1234.50',
    'note' => 'Test order from the PHP SDK!',
]);

For more details, check out our API reference.