Download the PHP package rlnks/sdk without Composer
On this page you can find all versions of the php package rlnks/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sdk
RLNKS PHP SDK
Official PHP SDK for the RLNKS API - Smart redirect and image routing.
Requirements
- PHP 8.1 or higher
- Guzzle HTTP client
Installation
Install via Composer:
Quick Start
Authentication
The SDK supports API key authentication. Your API key can be found in your RLNKS dashboard.
Decision Trees
Decision trees are the core of RLNKS. They define conditional logic for serving different images or redirecting to different URLs.
List Trees
Create a Tree
Update a Tree
Activate/Deactivate a Tree
Clone a Tree
Test a Tree
Delete a Tree
Images
Upload and manage images that can be used in image-type decision trees.
List Images
Upload an Image
Get Folders
Update Image
Delete an Image
Analytics
Access performance analytics for your decision trees.
Get Tree Analytics
Get Breakdown by Dimension
Webhooks
Set up webhooks to receive real-time notifications about events in your account.
List Webhooks
Create a Webhook
Update a Webhook
Test a Webhook
Get Deliveries
Regenerate Secret
Handling Webhooks
When receiving webhooks, always verify the signature before processing:
Custom Domains
Serve your links from your own domain for white-label solutions and brand consistency.
List Domains
Add a Domain
Verify and Activate
Set Default Domain
Check Availability
Delete a Domain
Ephemeral Links (Test Links)
Create temporary links for testing decision trees without affecting production statistics.
Create Test Links
Test with Variable Slugs
Variable slugs allow testing different condition paths with a single tree.
List and Manage Links
Link Properties
Variable Slugs in Tree Conditions
Variable slugs enable condition-based routing with a single URL. This allows one tree to handle multiple use cases (e.g., different banners for different contexts).
URL Format
Examples:
/i/abc123/campaign/logo- variable slug is "logo"/i/abc123/campaign/banner- variable slug is "banner"/r/xyz789/email/cta1- variable slug is "cta1"
Using in Tree Conditions
When building a tree, use the slug field in conditions:
Testing Variable Slugs
Account
Manage your account settings and monitor usage.
Get Account Info
Get Usage
Get Plan Limits
Get a comprehensive summary of all plan limits and current usage:
Update Account
Error Handling
The SDK throws specific exceptions for different error types:
Rate Limiting
The SDK automatically extracts rate limit information from responses:
Pagination
Paginated responses provide convenient methods for iteration:
Models
Response data is returned as model objects with helpful methods:
Tree Model
Image Model
Testing
The SDK includes helpers for testing your integration:
License
MIT License. See LICENSE file for details.
All versions of sdk with dependencies
guzzlehttp/guzzle Version ^7.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0|^2.0