Sila API Docs | Sila Banking and Payments API

Welcome to the Sila API!

PHP SDK

Version 0.2.9-rc

🚧

NOTE: This SDK is a Release Candidate.

The PHP SDK requires PHP 7.2 and above.

PHP extensions required

  • ext-curl
  • ext-json
  • ext-mbstring
  • ext-gmp (not usually enabled by default)

Initialization sets up the app private key and handle for the SDK to use for signing subsequent requests. The other SDK functionality will not be available until this configuration is completed. The SDK does not store this information outside of the instance that is configured. Private keys are never transmitted over the network or stored outside the scope of this instance.

  
// Installation
Via Composer

composer require silamoney/php-sdk:0.2.9-rc

<?php
// Initialization
require_once 'vendor/autoload.php';

use Silamoney\Client\Api\SilaApi;
use Silamoney\Client\Domain\{BalanceEnvironments,Environments};

// Load your credentials
$appHandle = 'your app handle';
$privateKey = 'your private key';

// Create your client
$client = SilaApi::fromEnvironment(Environments::SANDBOX(), BalanceEnvironments::SANDBOX(), $appHandle, $privateKey); // From predefined environments
//$client = new SilaApi('your sila endpoint url', 'your sila balance endpoint url', $appHandle, $privateKey); // From custom URL
//$client = SilaApi::fromDefault($appHandle, $privateKey); // From default sandbox environments

Updated about a month ago


PHP SDK


Version 0.2.9-rc

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.