Download the PHP package flexibuild/file without Composer

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

Yii2 File Manager

Yii2 extension that allows to work with files as with simple properties.

Advantages

  1. Usage of files like any other simple property.

  2. Storages logic is separated and can be change without changing your controllers or views.

  3. Formatters logic is separated. For each of file you can define formatters. This formatters allow to generate and use formatted versions of file. Added useful watermakr, thumb, grayscale and others formatters for images.

  4. Useful getting url of source file or formatted version of file.

  5. File storage allows to save origin file names.

  6. Useful config for default file url (for dummy urls).

  7. You can use ajax file uploader with minimal application config.

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json.

Usage

Example of usage for avatar field in ContactForm model:

  1. Add contextManager application component config in your cfg file:

  2. Add flexibuild\file\ModelBehavior in your model. For example you have property $avatar in you model.

After that your model has property 'avatarFile'. It type is \flexibuild\file\File object. For better compability with IDE we recommend to add this property in your model's PHPDoc:

  1. For adding possibility to change 'avatarFile' through 'setAttributes()' method, you must to add some rule or edit your scenarios() method. Example with 'rules()' method:

  2. Add using one of the widgets in your view file. You can use ActiveFormEx or ActiveFieldEx (or FieldFileInputsTrait) for greater convenience.

  3. For using AJAX file uploader you must to add upload action in your controller map. For that you can use flexibuild\file\web\UploadAction in your controller or use flexibuild\file\web\UploadController with contexts config:

After that instead of SimpleFileInput you can use ajax jquery uploader:

OR

  1. You can use your new file property not only in form. In other your views you can:

See \flexibuild\file\File object for more info.


All versions of file with dependencies

PHP Build Version
Package Version
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 flexibuild/file contains the following files

Loading the files please wait ....