getruba/sdk

Typed PHP client for Ruba payments, billing, customers, and webhooks.

Maintainers

Package info

github.com/rubadot/ruba-php

pkg:composer/getruba/sdk

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.10.4 2026-07-22 16:32 UTC

This package is auto-updated.

Last update: 2026-07-23 19:35:09 UTC


README

Use typed clients and models to connect PHP applications to Ruba payments, billing, customers, subscriptions, orders, and webhooks.

Requirements

  • PHP 8.2 or newer
  • Composer

Install with Composer

composer require getruba/sdk

Set up the client

<?php

declare(strict_types=1);

require __DIR__ . '/vendor/autoload.php';

$ruba = Ruba\Ruba::builder()
    ->setSecurity($_ENV['RUBA_ACCESS_TOKEN'])
    ->build();

$pages = $ruba->organizations->list(page: 1, limit: 10);

foreach ($pages as $page) {
    if ($page->statusCode === 200) {
        var_dump($page);
    }
}

Store the access token outside your source code. Use sandbox credentials during development and production credentials only on your deployed server.

Documentation and support

Endpoint schemas and authentication details are available in the Ruba API reference. Open an issue if the PHP client behaves differently from the documented API.

License

MIT