Download the PHP package marshmallow/nova-advanced-image without Composer

On this page you can find all versions of the php package marshmallow/nova-advanced-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 nova-advanced-image

alt text

Nova Advanced Image Field

Latest Version on Packagist Tests Total Downloads

An advanced image field for Nova with crop and resize.

This package provides an advanced image field for Nova resources allowing you to upload, crop and resize any image. It uses Cropper.js with vue-cropperjs in the frontend and Intervention Image in the backend.

screenshot of the advanced image field

Requirements

Intervention Image requires one of the following libraries for image processing:

See the Intervention requirements for more details. The autoOrientate() helper additionally requires the PHP exif extension to be enabled.

Installation

Install the package into a Laravel application with Nova using Composer:

The field service provider is auto-discovered, so there is nothing further to register.

If you want to use Imagick as the default image processing library, follow the Intervention documentation for Laravel. This will provide you with a new configuration file where you can specify the driver you want. You can also override the driver per field with ->driver('imagick').

Usage

AdvancedImage extends Nova's Image field, so you can use any method that Image/File implements. See the Nova file field documentation for the inherited options.

The resize option uses Intervention Image resize() with the upsize and aspect ratio constraints.

Available methods

Method Description
croppable($param = true) Enable the crop box. Pass a numeric value (e.g. 16 / 9) to lock a fixed aspect ratio.
resize($width = null, $height = null) Resize the stored image to a maximum width and/or height.
driver(string $driver) Override the Intervention driver for this field. Accepts gd or imagick.
autoOrientate() Rotate the image to the orientation stored in its Exif data. Requires the PHP exif extension.
customThumbnail($callable) Customise the thumbnail URL resolver (proxies Nova's thumbnail()).
customPreview($callable) Customise the preview URL resolver (proxies Nova's preview()).
setCustomCallback($customCallback) Run a custom callback after the image has been stored.

Avatar variant

For avatar-style fields, use AdvancedAvatar. It extends AdvancedImage, implements Nova's Cover contract and renders a rounded thumbnail.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Changelog

Please see CHANGELOG for recent changes.

Credits

License

The MIT License (MIT). Please see the License File for more information.


All versions of nova-advanced-image with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
intervention/image Version ^3.6
laravel/nova Version ^4.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 marshmallow/nova-advanced-image contains the following files

Loading the files please wait ...