Download the PHP package phpguus/flysystem-raid without Composer

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

Flysystem-raid

Latest Version on Github Latest Version on Packagist Build Status StyleCI Quality Score Total Downloads

Flysystem-raid provides RAID functionality across multiple flysystem filesystems.

Installation

Require the package using composer

Usage

RAID-0

RAID-0 is commonly known to provide striping of data.

We do not yet provide support for this kind of RAID configuration.

RAID-1

RAID-1 is commonly known to provide mirroring of data. Because we use the Flysystem abstraction, we can mirror data across any Flysystem, and make it redundantly available.

This is, in some respects, better than what a CDN can provide. A CDN normally covers only one vendor, for example DigitalOcean's Spaces CDN. This package, however, allows you to create mirrored data across many vendors, including a local disk.

If you want to keep files on your web server as well as in the cloud, this RAID configuration is all you need to do exactly that.

The file myFirstFile.txt is now written in both /local_files and in the AWS cloud.

Extending the mirror to a new location

Extending the mirroring of your RAID-1 configuration to a new location is very simple:

Replacing one location of the mirror

If you want to replace a location, because for example you change vendors from AWS to Digital Ocean, you need to perform a two step approach:

Step 1 is to make sure that your mirror is fully redundant:

Step 2 is to replace your AWS adapter configuration with a new one and to rebuild the array:

Knowing when to rebuild the array

returns an array that has a key mirrors. The value of this key indicates the number of mirrors that exist for this file. If this is less than the number of locations configured in your adapter, you need to rebuild the array.

It would make sense to run a scheduled script that calls rebuildArray() at least once a day.

RAID-5

RAID-5 is commonly known to sustain the failure of one of its configured components through the use of a single parity disk that can be used to calculate missing data. At least 3 disks are necessary to provide RAID-5 protection, two are used for data, and one is used for parity calculations.

In modern implementations, RAID-5 parity data is stored across all three disks, as is the principle data.

We do not yet provide support for this kind of RAID configuration.

RAID-6

RAID-6, aka Double Parity RAID, is commonly known to sustain the failure of two of its configured components through the use of a two parity disks that can be used to calculate missing data. At least 4 disks are necessary to provide RAID-6 protection, two are used for data, and two are used for parity calculations.

In modern implementations, RAID-6 parity data is stored across all 4 disks, as is the principle data.

We do not yet provide support for this kind of RAID configuration.

RAID-10

This is combination of Striping and Mirroring, in which your data is striped across all disks, and each stripe (generally 8KiB) is mirrored.

We do not yet provide support for this kind of RAID configuration.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT


All versions of flysystem-raid with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
league/flysystem Version ^1.0.55
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 phpguus/flysystem-raid contains the following files

Loading the files please wait ....