Download the PHP package ebess/advanced-nova-media-library without Composer

On this page you can find all versions of the php package ebess/advanced-nova-media-library. 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 advanced-nova-media-library

Laravel Advanced Nova Media Library

Manage images of spatie's media library package. Upload multiple images and order them by drag and drop.

Table of Contents

Examples

Cropping Single image upload Multiple image upload Custom properties Generic file management

Install

Model media configuration

Let's assume you configured your model to use the media library like following:

Generic file management

Generic file management

In order to be able to upload and handle generic files just go ahead and use the Files field.

Single image upload

Single image upload

Multiple image upload

If you enable the multiple upload ability, you can order the images via drag & drop.

Multiple image upload

Selecting existing media

Selecting existing media Selecting existing media 2

If you upload the same media files to multiple models and you do not want to select it from the file system all over again, use this feature. Selecting an already existing media will copy it.

Attention: This feature will expose an endpoint to every user of your application to search existing media. If your media upload / custom properties on the media models are confidential, do not enable this feature!

Note: This feature does not support temporary URLs.

Names of uploaded images

The default filename of the new uploaded file is the original filename. You can change this with the help of the function setFileName, which takes a callback function as the only param. This callback function has three params: $originalFilename (the original filename like Fotolia 4711.jpg), $extension (file extension like jpg), $model (the current model). Here are just 2 examples of what you can do:

By default, the "name" field on the Media object is set to the original filename without the extension. To change this, you can use the setName function. Like setFileName above, it takes a callback function as the only param. This callback function has two params: $originalFilename and $model.

Responsive images

If you want to use responsive image functionality from the Spatie MediaLibrary, you can use the withResponsiveImages() function on the model.

Image cropping

Cropping

By default you are able to crop / rotate images by clicking the scissors in the left bottom corner on the edit view. The vue-js-clipper is used for this purpose. The cropping feature is limited to mime type of image/jpg, image/jpeg and image/png.

Important: By cropping an existing image the original media model is deleted and replaced by the cropped image. All custom properties are copied form the old to the new model.

To disable this feature use the croppable method:

You can set all configurations like ratio e.g. as following:

Available cropping configuration, see https://github.com/timtnleeProject/vuejs-clipper#clipper-basic.

It is possible to enforce cropping on upload, for example to ensure the image has the set aspect ratio:

Disabling cropping by default

By default, the cropping feature is enabled. To disable it by default for all images set default-croppable in config/nova-media-library.php to false:

Custom properties

Custom properties

Show image statistics (size, dimensions, type)

Image statistics

Custom headers

Media Field (Video)

In order to handle videos with thumbnails you need to use the Media field instead of Images. This way you are able to upload videos as well.

Temporary Urls

If you are using Amazon S3 to store your media, you will need to use the temporary function on your field to generate a temporary signed URL. This function expects a valid Carbon instance that will specify when the URL should expire.

Note: This feature does not work with the existing media feature.

Credits

Alternatives

Change log

v4.0.2 - 2022-04-26

v4.0.1 - 2022-04-20

v4.0.0 - 2022-04-18

Full change log in PR #317

How to contribute


All versions of advanced-nova-media-library with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
laravel/framework Version ^8.0|^9.0|^10.0|^11.0
laravel/nova Version ^4.0
spatie/laravel-medialibrary Version ^8.0|^9.0|^10.0|^11.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 ebess/advanced-nova-media-library contains the following files

Loading the files please wait ....