Download the PHP package mindshaker/image-upload without Composer

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

Laravel Image Upload

This package makes image upload easy. It uses Intervention Image under the hood.

Installation

Require this package, with Composer, in the root directory of your project.

Configuration

There are some default configurations

You can change this values by publishing this configuration file

If you want to make your images private (blocked by auth for example), you'll need to add a new disk in config/filesystems.php and put this in the disks array

Usage

There are only a few methods, you can call the upload method to upload a image that will be edited to the given dimensions or cropped. The image will be saved to the public_path set in the configurations and be given a random name or the name of the original file.

The upload function returns the image name with additional path if set (see bellow)

To add an additional path

To give specific name to the uploaded file, if set it will ignore the configuration random_name

To define the format of the image uploaded (e.g. png, jpg, webp, etc..)

To define the quality of the image, default 75.

You can delete images by calling the method delete($image, $private = false) where $image is the name returned from the upload() method

Basic Examples

Adavanced Usage

If you want more than just resizing and cropping the images, you can call the method manager() and edit the image like it's an Intervention Image. This is a substitute to the upload method, all the other methods still work (Like path(), name() and format()). After editing, to upload the image you can call the method save() to upload the image to the specified path and format.

Example


All versions of image-upload with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
illuminate/support Version ^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
intervention/image Version ^3.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 mindshaker/image-upload contains the following files

Loading the files please wait ....