Download the PHP package exploring/fileutility without Composer

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

FileUtilityBundle

-

This bundle aims to help management of files that were sent thought the form.

Symfony2 does a great job with converting raw file data into UploadedFile object and the goal of this bundle is to further extend it.

Installation (via composer)

To install FileUtilityBundle with Composer just add the following to your composer.json file:

{
    // ...
    require: {
        "exploring/fileutility": "dev-master"
    }
}

Please replace the "dev-master" with some concrete release.

Then run:

php composer.phar update

And register the bundle within AppKernel.php

You are all set.

Configuration

The bundle uses several configutaion entries. However, the minimalistic configuation should look like:

All file are uploaded to a specific subdirectory of upload_root path. You can have as many subdirectories as you like.

You can read full configuration reference here.

Notice: Concept of directory "alias" has been removed in v2.0. Directories are now auto discovered during the warm up process. If you instantiate FileManager manually, you can still set available directories.

Advice: Either keep your upload root diretory out of web public directory or ensure proper access rights to file stored there in order to avoid execution of files uploaded.

Basic usage

You need to use service names exploring_file_utility.manager in order to gain access to FileManager:

The example above takes some arbitrary file and, given the configuration above, uploads it to /path/to/symfonyapp/web/uploads/foo.

FileManager's operations are transaction based. That means that any changes made to the file-system will be reverted back unless you callcommit():

You can invoke rollback() to revert any changes as well at any time:

Examples

Various examples, both simple and advances, can be found in example document

Image manipulations

This bundle comes with some image manipulations operations built-in. Complete documentation on those can be found here


All versions of fileutility with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
symfony/http-foundation Version 2.*|3.*|4.*|5.*
symfony/config Version ^5.4
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 exploring/fileutility contains the following files

Loading the files please wait ....