Download the PHP package eleven59/backpack-image-traits without Composer

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

BackpackImageTraits

Latest Version on Packagist Total Downloads

Backpack for Laravel helper traits for processing image upload fields (including in repeatable fields)

This package provides helper traits for processing Backpack's built-in image fields. With these traits, you'll only have to add a function with one line of code to process image fields.

Installation

Dependencies

This package requires

Installation

Via Composer

Usage

The two traits included in this package allow you to process Backpack for Laravel fields of the 'image' type with only a single line of code. More lines of code available if you need to tweak things (see options below).

Image fields

For single top-level image fields: 1) Add HasImageFields Trait to Model 2) Add setAttribute function for the image field

Images within repeatable fields

If you have a repeatable field in your model that has one or more child image fields: 1) Add HasImageFields and HasImagesInRepeatableFields Traits to Model 2) Add setAttribute function for the repeatable field

Options

Both traits support the same array of options to customize how the image upload is processed. For repeatable fields, the same options will be used for every image field in the repeatable field's child array.

All available options are displayed below with their default values.

Supported formats: all intervention image formats except data-url, so as of Intervention Image 2.5.1:

Advanced examples using callables

The transformations callable can be used to perform additional transformations using the Intervention Image object (see Intervention Image docs).

The callback callable allows you to override the return function using the generated filename as an input variable.

Change log

Breaking changes will be listed here. For other changes see commit log.

Credits

License

This project was released under the MIT license, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.

However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.


All versions of backpack-image-traits with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~7|~8|~9
intervention/image Version ^2.5
backpack/crud Version ^4.1.0|^5.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 eleven59/backpack-image-traits contains the following files

Loading the files please wait ....