rixl/sdk

PHP client for the RIXL API.

Maintainers

Package info

github.com/rixlhq/rixl-php

pkg:composer/rixl/sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.3 2026-05-05 17:05 UTC

This package is auto-updated.

Last update: 2026-05-05 17:06:04 UTC


README

PHP client for the RIXL API.

Packagist

Install

composer require rixl/sdk

Requires PHP 8.2+. The Kiota PHP runtime (HTTP, serializers) is pulled in transitively.

Quick start

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

use Rixl\Sdk\RixlClient;
use Microsoft\Kiota\Authentication\ApiKeyAuthenticationProvider;
use Microsoft\Kiota\Authentication\KeyLocation;
use Microsoft\Kiota\Http\GuzzleRequestAdapter;

$auth = new ApiKeyAuthenticationProvider(
    'YOUR_RIXL_API_KEY', 'X-API-Key', KeyLocation::Header
);
$adapter = new GuzzleRequestAdapter($auth);
$client = new RixlClient($adapter);

$image = $client->images()->byImageId('PS5IMKoFLm')->get()->wait();
echo $image->getId() . "\n";

Default base URL: https://api.rixl.com. Override with $adapter->setBaseUrl(...).

Resources

// Feeds
$posts = $client->feeds()->byFeedId('FD4y3QB38S')->get()->wait();

// Images — list, get, delete
$page  = $client->images()->get()->wait();
$image = $client->images()->byImageId('PS5IMKoFLm')->get()->wait();
$client->images()->byImageId('PS5IMKoFLm')->delete()->wait();

// Videos
$videos = $client->videos()->get()->wait();
$video  = $client->videos()->byVideoId('VI9VXQxWXQ')->get()->wait();

Upload (init → PUT bytes to presigned URL → complete) and pagination follow the same pattern as the other RIXL SDKs.

Errors

API errors (400/401/403/404/500) are thrown as Rixl\Sdk\Models\Github_com_rixlhq_api_internal_errors\ErrorResponse exceptions; catch and inspect getCode() / getError().

Support

Open an issue at github.com/rixlhq/rixl-php.