Download the PHP package dbp/relay-blob-connector-filesystem-bundle without Composer

On this page you can find all versions of the php package dbp/relay-blob-connector-filesystem-bundle. 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 relay-blob-connector-filesystem-bundle

Relay-Blob-Connector-Filesystem Bundle

GitHub | Packagist | Changelog

This bundle is a connector bundle for the relay-blob-bundle to store blob data on the filesystem. It implements the DatasystemProviderServiceInterface of the blob bundle. It can save files to a specific path, rename those files, remove those files, or return short-lived share-links.

Requirements

You need the DbpRelayBlob bundle installed to make this bundle working, see DbpRelayBlobBundle.

Bundle installation

You can install the bundle directly from packagist.org.

Integration into the Relay API Server

If you were using the DBP API Server Template as template for your Symfony application, then this should have already been generated for you.

Configuration

The bundle has multiple configuration values that you can specify in your app, either by hard-coding it, or by referencing an environment variable.

For this create config/packages/dbp_relay_blob_connector_filesystem.yaml in the app with the following content:

For more info on bundle configuration see https://symfony.com/doc/current/bundles/configuration.html.

Development & Testing

Bundle dependencies

Don't forget you need to pull down your dependencies in your main application if you are installing packages in a bundle.

Scripts

Database migration

Run this script to migrate the database. Run this script after installation of the bundle and after every update to adapt the database to the new source code.

Functionality

/blob/filesystem/{identifier}

GET

Returns a binary file response of a sharelink id if the sharelink is valid and it exists

Error codes

relay:errorId Status code Description relay:errorDetails Example
blobConnectorFilesystem:no-identifier-set 400 No identifier set message
blobConnectorFilesystem:download-file 400 No file with this share id found message
blob-connector-filesystem:save-file-error 400 File could not be uploaded message
blob-connector-filesystem:generate-sharelink-error 400 Sharelink could not generated message
blob-connector-filesystem:fileshare-not-found 403 Fileshare was not found! message
blob-connector-filesystem:path-not-generated 500 Path could not be generated message
blob-connector-filesystem:sharelink-not-saved 500 ShareLink could not be saved! message

CronJobs

Cleanup Cronjob

Blob Connector Filesystem Database cleanup: This cronjob is for cleanup purposes. It deletes all invalid sharelinks and starts every hour.


All versions of relay-blob-connector-filesystem-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
api-platform/core Version ^2.7.11 || ^3.2
dbp/relay-blob-bundle Version ^0.1.22
dbp/relay-core-bundle Version ^v0.1.153
doctrine/dbal Version ^3.3
symfony/framework-bundle Version ^5.4.30 || ^6.4
doctrine/migrations Version ^3.5
doctrine/orm Version ^2.18
symfony/config Version ^5.4 || ^6.4
symfony/dependency-injection Version ^5.4 || ^6.4
symfony/http-foundation Version ^5.4 || ^6.4
symfony/http-kernel Version ^5.4 || ^6.4
symfony/mime Version ^5.4 || ^6.4
symfony/string Version ^5.4 || ^6.4
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 dbp/relay-blob-connector-filesystem-bundle contains the following files

Loading the files please wait ....