Download the PHP package elgigi/flysystem-useful-adapters without Composer

On this page you can find all versions of the php package elgigi/flysystem-useful-adapters. 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 flysystem-useful-adapters

FlysytemUsefulAdapters

Latest Version Build Status Total Downloads

This extension adds some useful adapters for the league/flysystem library.

Installation

You can install the client with Composer:

Adapters

FallbackAdapter

The FallbackAdapter allows you to read from or write to a fallback adapter when the primary one fails.

Imagine that your main adapter is an S3 bucket in an unavailable region; to continue to receive files from your customers, you can use a fallback adapter on another region.

Adapters are tried in the order they are given until one succeeds. If every adapter throws, the last exception is rethrown.

IgnoreFilesystemAdapter

The IgnoreFilesystemAdapter decorates an adapter and filters entries based on .gitignore-style ignore files (e.g. .docignore). Patterns follow the gitignore syntax (negation with !, anchoring with /, **, directory-only with a trailing /, character classes…) and are resolved as a cascade: an ignore file placed in a subdirectory applies to that subtree, overriding the rules of parent directories.

The third argument $strict (default true) controls how ignored paths behave:

The ignore files themselves are always hidden from listContents() but remain readable.

LogAdapter

The LogAdapter is compliant with psr/log and allows you to log actions performed on a filesystem.

Each operation is logged with a level that depends on its nature: write-type operations (write, writeStream, copy, move, delete, deleteDirectory, createDirectory, setVisibility) are logged at the notice level, read and metadata operations at the debug level, and any failure at the error level.

ReadWriteAdapter

The ReadWriteAdapter allows you to separate reader and writer adapters.

Write methods (write, writeStream, delete, copy, move, createDirectory, deleteDirectory, setVisibility) are routed to the writer adapters, while all other (read/metadata) methods are routed to the reader adapters. Readers are automatically wrapped as read-only to ensure no write happens through them. At least one reader and one writer are required.

RetryAdapter

The RetryAdapter allows you to retry an action on a filesystem in case of failure, after a delay and a given number of times.

The second argument $time is the delay between attempts, in milliseconds (default 5000). The third argument $retry is the total number of attempts (default 2, minimum 1). The fourth argument $multiplier (default 1.0, minimum 1) applies an exponential backoff: the delay for attempt n is time * multiplier^n (e.g. with time: 1000 and multiplier: 2.0, delays are 1000 ms, then 2000 ms, then 4000 ms…). A multiplier of 1.0 keeps a constant delay. No delay is applied after the last attempt; if all attempts fail, the last exception is rethrown.


All versions of flysystem-useful-adapters with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
league/flysystem Version ^3.7
league/flysystem-read-only Version ^3.23
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 elgigi/flysystem-useful-adapters contains the following files

Loading the files please wait ...