Download the PHP package sbrimon/streamtape-php-client without Composer

On this page you can find all versions of the php package sbrimon/streamtape-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package streamtape-php-client

Streamtape PHP Client

A simple PHP client for interacting with the Streamtape API. This client allows you to manage files, retrieve account information, and perform other operations easily via an object-oriented interface.

Features

Installation

You can install this library either by using Composer or by manually downloading the files.

1. Using Composer (recommended)

If you are using Composer, you can add this repository to your composer.json:

2. Manual Installation

If you prefer to manually install, download the Streamtape.php file and include it in your project like this:

Usage

Initialization

To use the client, you need to initialize the Streamtape class with your Streamtape credentials: your login and API key.

Get Account Information

You can retrieve your account information (such as email) by calling the AccountInfo() method.

Upload

To upload a file, use the Upload() method. You can pass a file, and optionally specify the folder, file name, and SHA256 hash.

Remote Upload

To add a remote upload, use the RemoteUpload() method by providing a remote URL and optional parameters like folder, custom name, and headers.

Remove Remote Upload

To remove a remote upload (or all), call the RemoveRemoteUpload() method and pass the remote upload ID or 'all' to delete all.

Check Remote Upload Status

To check the status of a remote upload, use the RemoteUploadStatus() method by providing the remote upload ID.

Get File Information

To retrieve file information, use the FileInfo() method with the file ID.

List Files

You can list files in a specific folder using the ListFiles() method.

Create New Folder

To create a new folder, use the NewFolder() method and specify the folder name (and optionally the parent folder ID).

Rename Folder

To rename an existing folder, use the RenameFolder() method by providing the folder ID and the new folder name.

Delete Folder

To delete a folder, use the DeleteFolder() method by providing the folder ID.

Rename File

To rename a file, use the RenameFile() method and provide the file ID and new file name.

Move File

You can move a file to a different folder with the MoveFile() method, by providing the file ID and the target folder ID.

Delete File

To delete a file, use the DeleteFile() method with the file ID.

Lists Running Conversions

You can retrieve a list of running conversions using the RunningConverts() method.

Lists Failed Conversions

To list all failed conversions, use the FailedConverts() method.

Get Thumbnail Image

To retrieve a thumbnail image for a specific file, use the Thumbnail() method and provide the file ID.

Available Methods

0. json() or toArray()

1. AccountInfo()


2. FileInfo($fileId)


3. ListFiles($folder = null)


4. NewFolder($name, $pid = null)


5. RenameFolder($folder, $name)


6. DeleteFolder($folder)


7. RenameFile($file, $name)


8. MoveFile($file, $folder)


9. DeleteFile($file)


10. RunningConverts()


11. FailedConverts()


12. Thumbnail($file)


13. RemoteUpload($url, $folder = null, $name = null, $headers = null)


14. RemoveRemoteUpload($id)


15. RemoteUploadStatus($id)


16. Upload($videoFile, $fileName = null, $folder = null, $sha256 = null, $httponly = null)

For additional API methods, refer to the Streamtape API documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Key Points:

This README provides a complete and user-friendly guide for anyone who wants to use my PHP Streamtape client!


All versions of streamtape-php-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sbrimon/streamtape-php-client contains the following files

Loading the files please wait ...