Download the PHP package mostafaznv/nova-file-artisan without Composer

On this page you can find all versions of the php package mostafaznv/nova-file-artisan. 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-file-artisan

Nova File Artisan

GitHub license Packagist Downloads Latest Version on Packagist

Nova File Artisan is a package that integrates Larupload with Laravel Nova. Larupload is a file uploader for Laravel, which is based on ORM and allows users to upload images, videos, audios, and other known file formats.

With Nova File Artisan, you can use the features of both packages to create a admin panel for your Laravel project. You can upload and display various types of files (such as images, videos, audio, etc.) in your Nova resources. You can also transform your files (such as resizing, cropping, compressing, etc.) using Larupload's methods. You can also set your upload settings (such as disk, path, visibility, etc.) using Larupload's options.

Nova File Artisan is simple to install and use, and it supports multiple file systems (such as local, s3, sftp, etc.).

Demo


I am on an open-source journey 🚀, and I wish I could solely focus on my development path without worrying about my financial situation. However, as life is not perfect, I have to consider other factors.

Therefore, if you decide to use my packages, please kindly consider making a donation. Any amount, no matter how small, goes a long way and is greatly appreciated. 🍺

Donate


Some features for Nova Artisan Field:

Requirements:

Installation and Usage

[!NOTE]
Ensure that you have already installed and configured the Larupload package in your Laravel application. If you haven't done so, please refer to the Larupload documentation for instructions on installation and usage. It's important to create attachments for each model before proceeding with Nova File Artisan.

  1. Install the package via composer:
  2. Publish config file:
  3. Prepare Migration & Model (for more information, see Larupload documentation)
Migration
Model
  1. Prepare Nova Resource

That's it, you're ready to go!

Get Attachment Metadata

You can print extracted metadata from your files using NovaFileArtisanMeta field. This field is a read-only field, and it is only used to display metadata.

Working with Covers

Covers are automatically generated for videos and images, but you also have the option to upload custom covers for these and any other file types.

However, there may be occasions when you need to hide the cover on the details page or even remove the cover uploader from the form. You can achieve this by using the hideCoverFromDetail and hideCoverUploader methods.

Hide Cover Uploader

Hide Cover From Detail Page

Notes

Pruning Files

Nova's prunable method does not work with NovaFileArtisan field as expected. As you may know, in Larupload, there is an option to turn on/off preserve-files. This option is used to prevent files from being deleted when the model is deleted from the database, and it aligns with the behavior expected from the prunable method. Therefore, if you want to keep files when the model is deleted, you should set preserve-files to true. You can do this either in your Larupload configuration file or in your file attachment instance.


I am on an open-source journey 🚀, and I wish I could solely focus on my development path without worrying about my financial situation. However, as life is not perfect, I have to consider other factors.

Therefore, if you decide to use my packages, please kindly consider making a donation. Any amount, no matter how small, goes a long way and is greatly appreciated. 🍺

Donate


Demo:

https://github.com/mostafaznv/nova-file-artisan/assets/7619687/20af12ab-0ba1-4767-9b0c-e4a49a0b8e5b

License

This software is released under The MIT License (MIT).


All versions of nova-file-artisan with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
laravel/framework Version ^10.4.1|^11.0
laravel/nova Version ^4.27
mostafaznv/larupload Version ^1.0.5|^2.0.0
nova-kit/nova-packages-tool Version ^v1.13.3
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 mostafaznv/nova-file-artisan contains the following files

Loading the files please wait ....