Download the PHP package pollen-solutions/filesystem without Composer

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

Filesystem Component

Latest Stable Version PHP Supported Versions

Pollen Solutions Filesystem Component is an abstraction layer of file storage library Flysystem.

Installation

Basic Usage

API

The API of the pollen solutions filesystem is identical to that of Flysystem which it inherits. More information on Flysystem online official documentation.

Storage Manager inherits the Filesystem instance's methods from its default disk and provides other methods to access other declared disk instances.

Sets a custom default filesystem

The default disk is created from public dir of the web application, it accessible via native PHP function getcwd. But the risk is that you could delete, overwrite ... files essential to the functioning of your application.

For this security convenients, it is preferable to config your own default fallback disk with better file permissions.

Register a local disk

From a local dir path

With a custom local filesystem instance

With a custom local filesystem instance and with custom adapter instance

More information about filesystem architecture on Flysystem online official documentation.

Extended Local Filesystem API.

One of the main advantages of using Pollen Solutions Filesystem instead Flysystem, is that it is coupled with a system of HTTP request. This allows to extend the API of Flystem with some practical features.

Local Image Filesystem

Pollen Solutions Filesystem provides a specific Filesystem and its adapter for the local image files.

Register a local image filesystem

Create a custom local image filesystem instance

Local Image Filesystem extended API

S3 Filesystem

Advanced Usage

Uses native or third-party Filesystem and Adapter

Flysystem has a variety of Filesystems and adapters, sometimes provided by third party library.

Examples :

You might need to use one of them and implement it in Pollen Solutions Filesystem Component.

This example uses Flysystem FTP Adapter. First of all, Flysystem FTP Adapter requires a new dependency installation.

Create your own filesystem driver


All versions of filesystem with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
league/flysystem Version ^2.0
pollen-solutions/http Version ^1.0
pollen-solutions/support Version ^1.0
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 pollen-solutions/filesystem contains the following files

Loading the files please wait ....