Download the PHP package mmanos/laravel-image without Composer

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

Image Package for Laravel 4

This package provides the ability to conveniently work with uploaded images. It includes an images table and model, and has the ability to provide multiple versions of the same image with different dimensions, generated on demand.

Dependencies

This package relies on the laravel-storage to manage the image files, which supports writing to the local filesystem or the Amazon S3 service.

Installation Via Composer

Add this to you composer.json file, in the require object:

After that, run composer install to install the package.

Add the service provider to app/config/app.php, within the providers array.

Add a class alias to app/config/app.php, within the aliases array.

Configuration

Publish the default config file to your application so you can make modifications.

Publish and run the database migrations for this package.

Note: Don't forget to create the writable directory used by the Storage package, if using the local filesystem driver.

Usage

Creating Images

Create an image from image data:

Create an image from an uploaded image file:

Create an image from a file on the filesystem:

Create an image from a URL to an image:

Using Images

Get URL to the original image:

Get URL to image constrained to 128px (best fit, maintaining aspect ratio):

Get URL to image constrained to 128px in height (maintaining aspect ratio):

Get URL to image constrained to 128px in width (maintaining aspect ratio):

Get URL to image cropped to a 128px square:

Note: You may pass any arbitrary integer value for the image dimension.


All versions of laravel-image with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version >=4.1
dmyers/laravel-storage Version 1.0.*
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 mmanos/laravel-image contains the following files

Loading the files please wait ....