Download the PHP package ardenthq/nova-image-gallery-field without Composer

On this page you can find all versions of the php package ardenthq/nova-image-gallery-field. 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-image-gallery-field

Laravel Nova Image Gallery Field

A custom Nova field that allows multiple image upload with sorting

Stable Version License PHP Version Require

Features

Installation

Requirements

Use

Note This package reuses part of the logic used on the Laravel\Nova\Fields\Trix Field to store and handle files. This means we need to follow some steps that are mentioned on the Laravel Nova docs related to adding the migrations and pruning the files.

  1. Define two database tables to store pending and persisted Trix uploads. To do so, create a migration with the following table definitions:

Note: latest nova already includes these migrations. If so, you might receive error Table already exists while running migrations. In this case, you might only need to add original_name field in nova_pending_field_attachments:

  1. In your app/Console/Kernel.php file, you should register a daily job to prune any stale attachments from the pending attachments table and storage. Laravel Nova provides the job implementation needed to accomplish this:

  2. Add the ImageGalleryField field to your Nova Resource.

  3. Consider that the images will be stored in a Spatie\MediaLibrary\MediaCollections\Models\Media collection according to the name passed as the first parameter on the field make method or the second parameter if set. (Dont forget to register a media collection in your model)

  4. Use the rules() method to define the rules used for every single image.

  5. Use the rulesMessages() method to define custom validation messages for the image rules.

  6. Use the help() method if you want to place "help" text inside the Drag & Drop area.

Example

Compatibility Branch

Due to changes made to the Trix fields in Nova 4.22, this package does not support lower Nova v4 versions on the main branch. If you want to use this package on an older Nova version, please see the nova-compatibility branch in this repostitory and use that to install the package through composer: composer require ardenthq/nova-image-gallery-field:dev-nova-compatibility

Development

  1. Run yarn nova:install and yarn install to install all the necessary dependencies for compiling the view components.
  2. Run yarn run dev (or yarn run watch) while making changes to the components in your local environment.
  3. If you change the vue components, ensure to compile for production before making a PR.

Compile for production

  1. Run yarn nova:install and yarn install to install all the necessary dependencies for compiling the view components.
  2. Run yarn run production.

Analyze the code with phpstan

Refactor the code with php rector

Format the code with php-cs-fixer

Run tests

Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

Ardent


All versions of nova-image-gallery-field with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^8.0|^9.0|^10.0
laravel/nova Version ^4.0
spatie/laravel-medialibrary Version ^10.5
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 ardenthq/nova-image-gallery-field contains the following files

Loading the files please wait ....