Download the PHP package bst27/laravel-image-proxy without Composer

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

Laravel Image Proxy

Latest Version on Packagist Tests Total Downloads

A Laravel image proxy to cache, minify and manipulate images very easily.

Features


Installation

Per default spatie/image-optimizer is used to compress images. So make sure you install the required dependencies as described in their docs.


Usage

Use the global helper function proxy_image() to generate a secure image URL:

This will automatically minify and cache the image and generate something like this:

You can also define a strategy and filename for image manipulation:

This will use the default strategy for image manipulation, keep the given filename and generate something like this:


Manipulation Strategies

To manipulate images, you can configure different strategies in config/image-proxy.php. The DefaultManipulator strategy uses spatie/image-optimizer to compress images.

Each strategy class must implement the ImageManipulator contract. You can add your own image manipulation strategy easily:

  1. Implement the contract interface
  2. Add your manipulator to the manipulation_strategy array of the image-proxy.php with a unique strategy key.
  3. Start using it by calling proxy_image() with your strategy key.

Endpoints

Two routes are registered automatically:

URLs to these routes are generated via proxy_image() and require a valid encrypted payload token. You can customize them via the config.


Storage

Flysystem is used to offer flexible storage options. Per default the original images are read from the local storage disk. The cached images are stored on the local storage disk, too. You can customize the used storage disks using the plugin config or environment settings.


Configuration

Check image-proxy.php for default config. You can customize config via environment variables or publish the config file:

This will create config/image-proxy.php.


Tests

To run tests, you can execute the following command:


All versions of laravel-image-proxy with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^11.0|^12.0
spatie/image-optimizer Version ^1.8
ext-openssl Version *
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 bst27/laravel-image-proxy contains the following files

Loading the files please wait ...