Download the PHP package ipunkt/fileproxy-client without Composer

On this page you can find all versions of the php package ipunkt/fileproxy-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 fileproxy-client

fileproxy-client

Latest Stable Version Latest Unstable Version License Total Downloads

A client library for fileproxy

Quickstart

Usage

Setting up our client.

Setting Credentials

Since version 1.1.0 the fileproxy has the ability to protect api calls with a secret token header. You can add that to the client like so

Or, you can configure another header name than the default one:

Setting Headers

Another security level can be added by adding custom http headers for each request. So your infrastructure can verify the request by parsing them. You can achieve this like so:

Files resource

Files resource handles all stuff with the related proxy files. These files are the source for the aliases provided by the service.

Uploading a new file

$file is a File entity with the main information about the file itself - the reference.

Updating an uploaded file

$file is a File entity with the main information about the file itself - the reference.

Storing a remote file

$file is a File entity with the main information about the file itself - the reference.

Updating a stored remote file

$file is a File entity with the main information about the file itself - the reference.

Requesting a file by reference

$file is a File entity. You can fetch the hits from it for example.

FileAlias resource

You can create or retrieve aliases with this resource.

Creating an alias

The created $alias will be returned and includes the download url and the alias id.

Fetching all aliases

You can iterate over all existing $aliases.

Alias resource

Alias resource handles requesting and deleting of aliases.

Requesting an alias

$alias is an Alias entity. The main information about an alias is the download url and the hits and hits left statistics data.

Deleting an alias

Alias was deleted when no exception was thrown.

Statistics resource

Requesting statistics

$stats returns the main statistics for the current service: size in bytes, file and alias count serving and hits summarized.


All versions of fileproxy-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
guzzlehttp/guzzle Version 3.7.3
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 ipunkt/fileproxy-client contains the following files

Loading the files please wait ....