Download the PHP package aminkt/yii2-upload-manager without Composer

On this page you can find all versions of the php package aminkt/yii2-upload-manager. 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 yii2-upload-manager

Yii2 Upload manage module.

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

To install this module add "aminkt/yii2-upload-anager" : ">=1.2.0" in your composer.json in your project.

Then add flowing lines into your application config:

Then run below code to migrate up your modules:

Run migration if you are using defualt module models.

If you want to edit your files, open ['uploadManager/default/index'] in your browser.

How use upload manager widget?

Add flowing lines into your view file to load upload manager widget:

Use Upload manager api to upload and fetch files

First add flowing routes to your api url manager:

Top code means that use uploadManager api version 1 from v2/upload route. Flowing routes now available:

Notice:

  1. All request except load and view shoud use at least one auth method to authrize user.
  2. In upload route don't set content-type in header but in others you can.
  3. In upload route send file as post, file multi part and file name is better to be 'file'

Warning: Cross origin is enabled by default. if you have any problem with this please report it.

Advanced configuration

If you want implement your own models or search model or you wnat use Mongo db database you should flow below instractions.

  1. Create your models.
  2. Implement \aminkt\uploadManager\interfaces\FileInterface
  3. If you want use default File constant implement \aminkt\uploadManager\interfaces\FileConstantsInterface or not create your own constants named like defined interface.
  4. Config you module like said in first part and define fileClass and fileSearchClass
  5. You can use \aminkt\uploadManager\traits\FileTrait to implement some regular methods that defined in FileInterface

If you wnat use mongodb active record you can just change fileClass and fileSearchClass discribed in configuration part to use mongodb version as \aminkt\uploadManager\models\mongo\File and \aminkt\uploadManager\models\mongo\FileSearch


All versions of yii2-upload-manager with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version *
perminder-klair/yii2-dropzone Version dev-master
yiisoft/yii2-imagine Version ~2.0.0
faravaghi/yii2-jalali-datepicker Version dev-master
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 aminkt/yii2-upload-manager contains the following files

Loading the files please wait ....