Download the PHP package flipbox/image-controller without Composer

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

Image Controller

Controller your images for client request with size, quality, and extenstion with easy way. You no longer need to create an image with multiple sizes, this package is already handling request images with size needed,

Features

Required

Installation

Require this package with composer:

Add the ServiceProvider to the providers array in config/app.php

Add the facade of this package to the $aliases array config/app.php

Copy the package resource to your application with the publish command:

your image ready to control :-)

Using package

To avoid clashed request, we suggest you to add a little code to the end of your .htaccess file in public laravel folder

create folder images to your public folder (however you can change name of folder in config file), and put image to that folder, for example you put image with file name a photo.jpg, and you can access your photo as usual http://localhost/images/photo.jpg.

Request with size

Now you can request image with specify size (thumbnail,small,medium,large)

http://localhost/images/photo.jpg?size=thumbnail default width 100px
http://localhost/images/photo.jpg?size=small default width 240px
http://localhost/images/photo.jpg?size=medium default width 500px
http://localhost/images/photo.jpg?size=large default width 1024px

Request with specify width or height

Also you can request image with specify width or height or event both
http://localhost/images/photo.jpg?width=320 auto height
http://localhost/images/photo.jpg?height=320 auto width
http://localhost/images/photo.jpg?width=100&height=320 fixed width and height

Request with another extension

Real file extension will be ignored, now you can access your images file with extensions that defined in config or even with no extension
http://localhost/images/photo valid by default
http://localhost/images/photo.jpg valid by default
http://localhost/images/photo.png valid by default
http://localhost/images/photo.gif valid by default

Uploaded file

We provide uploader file that make upload file very easy. First parameter is UploadedFile or Base64 Encoding, and second parameter is directory/prefix.

this method will be return string of generated filename str_random(34)

Model Assesor

Add model accesor to generate image link.

ToDo


All versions of image-controller with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version ^5.2
intervention/image Version ^2.3
intervention/imagecache Version ^2.3
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 flipbox/image-controller contains the following files

Loading the files please wait ....