PHPackages                             fastpix/sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. fastpix/sdk

ActiveLibrary[Image &amp; Media](/categories/media)

fastpix/sdk
===========

FastPix PHP SDK for media, live streaming, playlists, analytics, and signing keys

1.0.4(2w ago)07MITPHPPHP &gt;=8.2CI failing

Since Oct 7Pushed 1mo agoCompare

[ Source](https://github.com/FastPix/fastpix-php)[ Packagist](https://packagist.org/packages/fastpix/sdk)[ RSS](/packages/fastpix-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (52)Versions (9)Used By (0)

FastPix PHP SDK
===============

[](#fastpix-php-sdk)

Developer-friendly &amp; type-safe PHP SDK for the FastPix platform API

Introduction
------------

[](#introduction)

The FastPix PHP SDK simplifies integration with the FastPix platform. It provides a clean, PHP 8+ interface for secure and efficient communication with the FastPix API, enabling easy management of media uploads, live streaming, on‑demand content, playlists, video analytics, and signing keys for secure access and token management. It is intended for use with PHP 8.2 and above.

Prerequisites
-------------

[](#prerequisites)

### Environment and Version Support

[](#environment-and-version-support)

RequirementVersionDescriptionPHP`8.2+`Core runtime environmentComposer`Latest`Package manager for dependenciesInternet`Required`API communication and authentication> **Pro Tip:** We recommend using PHP 8.3+ for optimal performance and the latest language features.

### Getting Started with FastPix

[](#getting-started-with-fastpix)

To get started with the FastPix PHP SDK, ensure you have the following:

- The FastPix APIs are authenticated using a **Username** and a **Password**. You must generate these credentials to use the SDK.
- Follow the steps in the [Authentication with Basic Auth](https://fastpix.com/docs/get-started/overview) guide to obtain your credentials.

### Environment Variables (Optional)

[](#environment-variables-optional)

Configure your FastPix credentials using environment variables for enhanced security and convenience:

```
# Set your FastPix credentials
export FASTPIX_USERNAME="your-access-token"
export FASTPIX_PASSWORD="your-secret-key"
```

> **Security Note:** Never commit your credentials to version control. Use environment variables or secure credential management systems.

Table of Contents
-----------------

[](#table-of-contents)

- [FastPix PHP SDK](#fastpix-php-sdk)
    - [Setup](#setup)
    - [Example Usage](#example-usage)
    - [Available Resources and Operations](#available-resources-and-operations)
    - [Error Handling](#error-handling)
    - [Server Selection](#server-selection)
    - [Development](#development)

Setup
-----

[](#setup)

### Installation

[](#installation)

The SDK relies on [Composer](https://getcomposer.org/) to manage its dependencies.

Add the SDK to your project:

```
{
    "require": {
        "fastpix/sdk": "*"
    }
}
```

Then run:

```
composer update
```

If you host the package in a private repository, add the repository to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/FastPix/fastpix-php.git"
        }
    ],
    "require": {
        "fastpix/sdk": "*"
    }
}
```

### Imports

[](#imports)

Use the SDK via Composer’s autoload and the FastPix namespaces:

```
