Download the PHP package ondrs/upload-manager without Composer

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

Upload Manager

Total Downloads CircleCI Latest Stable Version

Upload manager for Nette framework

Installation

composer.json

"ondrs/upload-manager": "v8.0.0"

Configuration

Register the extension:

Minimal configuration:

Full configuration:

In most cases you want to choose the wwwDir as your basePath (and it is chosen by default) to make your files publicly accessible. relativePath is relative to the basePath, so complete path where your files will be uploaded looks like this

dir is an optional parameter and you can set it during the runtime of your script in the listen() or in the upload() method.

fileManager:

imageManager

For example we will set the UploadManager according to the full configuration which is written above.

$this->upload->filesToDir('dir/path')

Uploading an image file foo.jpg with size (1680 x 1050) will result in creation of 5 files: foo.jpg, 800_foo.jpg, 500_.jpg, 250_foo.jpg, thumb_foo.jpg which will be saved in the %wwwDir%/uploads/super/dir All files are resized proportionally according to their X dimension and saved with a corresponding prefix. File foo.jpg is considered to be an original but it's resized to 1280px.

Usage

Inject ondrs\UploadManager\Upload into your presenter or wherever you want

And do an upload.

If you want to upload just a single file (for example with a form) call the singleFileToDir() method

Events

The real fun comes up with an events. They are here to help you to control and monitor your upload process with an ease.

Real world example


All versions of upload-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-gd Version *
ext-intl Version *
ext-exif Version *
nette/bootstrap Version ^3.0
nette/di Version ^3.0
nette/finder Version ^v2.5|^3.0
nette/http Version ^3.0
nette/utils Version ^3.0
guzzlehttp/guzzle Version ~6.5.5
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 ondrs/upload-manager contains the following files

Loading the files please wait ....