PHPackages                             ecentral/celum-connect-fal-rest-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ecentral/celum-connect-fal-rest-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ecentral/celum-connect-fal-rest-client
======================================

\### Authorization If you are already logged into CELUM Content via browser, no further authorization is required. Otherwise, please use one of the below methods: 1. Click on 'Authorize' on the right and either provide an API Key, type in your username/password or use OpenID Connect to log in. 2. OpenId implicit flow is disabled for security reasons and will not work as Authorization option. ### Creating an asset 1. Request upload via \[upload endpoint\](#/Upload/requestUpload). The endpoint will return a URl for uploading the binary and a upload handle to identify the upload. 2. Upload the content of your asset by sending a POST request to the upload URL from step 1 and setting the ```Content-Type``` header to ```application/octet-stream```. Optionally, you can also use multipart upload with ```multipart/form-data``` as ```Content-Type``` - like our Nova UI. 3. Create the asset via \[create asset endpoint\](#/Assets/createAssetInCollection) by passing in the upload handle from step 1 together with other parameters.

1.0.0(2mo ago)011unlicensePHPPHP ^8.1

Since Apr 9Pushed 1mo agoCompare

[ Source](https://github.com/ecentral/celum-connect-fal-rest-client)[ Packagist](https://packagist.org/packages/ecentral/celum-connect-fal-rest-client)[ Docs](https://openapi-generator.tech)[ RSS](/packages/ecentral-celum-connect-fal-rest-client/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (1)

celum-connect-fal-rest-client
=============================

[](#celum-connect-fal-rest-client)

### Authorization

[](#authorization)

If you are already logged into CELUM Content via browser, no further authorization is required. Otherwise, please use one of the below methods:

1. Click on 'Authorize' on the right and either provide an API Key, type in your username/password or use OpenID Connect to log in.
2. OpenId implicit flow is disabled for security reasons and will not work as Authorization option.

### Creating an asset

[](#creating-an-asset)

1. Request upload via [upload endpoint](#/Upload/requestUpload). The endpoint will return a URl for uploading the binary and a upload handle to identify the upload.
2. Upload the content of your asset by sending a POST request to the upload URL from step 1 and setting the `Content-Type` header to `application/octet-stream`. Optionally, you can also use multipart upload with `multipart/form-data` as `Content-Type` - like our Nova UI.
3. Create the asset via [create asset endpoint](#/Assets/createAssetInCollection) by passing in the upload handle from step 1 together with other parameters.

Installation &amp; Usage
------------------------

[](#installation--usage)

### Requirements

[](#requirements)

PHP 8.1 and later.

### Composer

[](#composer)

To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
