Download the PHP package samsonos/php_fs without Composer

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

SamsonPHP File service

This module gives abstraction level for working with file system independently of what exact file system is being used.

Latest Stable Version Build Status Code Coverage Code Climate Total Downloads Scrutinizer Code Quality Stories in Ready

Configuration

The main goal is to configure the service parameter.

This is usually done using SamsonPHP module/service configuration

By default is set to - it uses standard local file system service which is implemented by SamsonPHP local file service . This parameter has to be set to file service class name, for example - local file service - , no module/service identifiers or anything else should be used, first namespace separator should be avoided too:

When service is initialized it checks if configured file service class is present otherwise fatal error is signaled.

This gives you ability, for example, to quickly change your web-application file system from local file system to Amazon Web Services S3 bucket, which is implemented by SamsonPHP AWS file service . All you have to do is add configuration for this SamsonPHP file service():

Usage

To work with this SamsonPHP file service you should get file service instance pointer:

After this you can use all available methods from interface, which this SamsonPHP file service() implements. All this method call act like a proxy and passes them to currently configured file service(by default ).

Example usage:

Using service in tests

First of all you should create service instance:

In other places called after service creation you should retrieve service object via factory method:

All other SamsonPHP modules must and use this file service approach when working with files.


All versions of php_fs with dependencies

PHP Build Version
Package Version
Requires samsonos/php_core Version 1.*
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 samsonos/php_fs contains the following files

Loading the files please wait ....