Download the PHP package pluggit/storage without Composer

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

Pluggit - Storage

Scrutinizer Code Quality Build Status Code Coverage

Storage is a filesystem abstraction which allows you to easily swap out a local filesystem for a remote one.

TLDR;

Installation

Add this repo to your composer.json

`

Then require it as usual:

Adapters

It provides a generic API for handling common tasks across multiple file storage engines. If you want add a new one, you have to implements \Cmp\Storage\AdapterInterface.

The adapter interface contains these methods:

Builtin

This libs is shipped with two builtin adapters ready to use.

Strategies

It allows you specify different call strategies when you have been registered more than one adapter. If you want create a custom call strategy you must extend \Cmp\Storage\Strategy\AbstractStorageCallStrategies

Note: By default the lib uses the CallAllStrategy.

Mountpoints

Some times you will want use different adapters or strategies depending of the path you are working. We solve this using the MountableVirtualStorage. MountableVirtualStorage needs be constructed with one VirtualStorage implementation (Adapter or Strategy) and it binds this VirtualStorage to '/'.

After that you can register new mount points.

Example:

Builtin

There are two ready to use strategies.

Logging

The lib provides a default stdout logger but you can change in any moment by any PSR-3 logger compliant.

StorageBuilder

The storage builder takes te responsibility of create an abstract storage for you.

The available functions are:

Fluid calls:

Non fluid calls:

Functions available from storage

Exists

Check whether a file exists.

Get

Read a file and return the content.

GetStream

Retrieves a read-stream for a file.

Rename

Rename a file.

Copy

Copy a file.

Delete

Delete a file or directory (even if is not empty).

Put

Create a file or update if exists. It will create the missing folders.

PutStream

Create a file or update if exists. It will create the missing folders.

Note: Use stream functions for big files.

Requirements

Contribution


All versions of storage with dependencies

PHP Build Version
Package Version
Requires psr/log Version ^1.0
ralouphie/mimey Version ^1.0
aws/aws-sdk-php Version 3.19.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 pluggit/storage contains the following files

Loading the files please wait ....