Download the PHP package mohamedgaldi/vilt-filepond without Composer

On this page you can find all versions of the php package mohamedgaldi/vilt-filepond. 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 vilt-filepond

Laravel FilePond Package for VILT Stack

A comprehensive Laravel package for handling file uploads using FilePond in VILT (Vue, Inertia, Laravel, Tailwind) stack applications.

Features

Requirements

Installation

1. Install the Package

2. Install Frontend Dependencies

3. Publish Package Assets

4. Import FilePond Styles

Add the following imports to your app.css file before your Tailwind directives:

⚠️ Important: The FilePond CSS imports must come before Tailwind directives to ensure proper styling.

5. Run Migrations

6. Configure Storage

Ensure your public disk is properly configured in config/filesystems.php and create the storage link:

7. Environment Configuration

APP_URL Configuration

Ensure your APP_URL in .env matches your development server URL:

8. Configure Inertia Middleware

Add the CSRF token and config values to your HandleInertiaRequests middleware:

Quick Start

1. Prepare Your Model

Add the HasFiles trait to any model that needs file uploads:

2. Create a New Record with Files

3. Update Existing Records

4. Handle Files in Controller

Component Props

FileUpload Component

Prop Type Default Description
modelValue Array [] Array of temporary folder names
initialFiles Array [] Array of existing files to display
allowedFileTypes Array Image types Accepted MIME types
allowMultiple Boolean false Allow multiple file uploads
maxFiles Number 1 Maximum number of files
maxFileSize String "10MB" Maximum file size
collection String "default" File collection name
disabled Boolean false Disable the component
required Boolean false Mark as required field
theme String "light" Theme for the component (light or dark)
width String "auto" Custom width for the component (e.g., "40rem")

Events

Event Payload Description
@file-added { folder, file } Fired when a file is uploaded
@file-removed { fileId, type, file } Fired when a file is removed
@error error Fired when an error occurs

Configuration

Customize the package behavior in config/vilt-filepond.php:

API Reference

HasFiles Trait Methods

Method Description
files() Get all files relationship
getFilesByCollection(string $collection) Get files by collection
getFirstFile(string $collection = 'default') Get first file from collection
hasFiles(string $collection = null) Check if model has files
deleteFiles(string $collection = null) Delete files by collection

FilePondService Methods

Method Description
storeTempFile(UploadedFile $file, string $collection) Store temporary file
moveTempFileToModel($model, string $folder, string $collection, int $order) Move temp file to model
handleFileUploads($model, array $tempFolders, string $collection) Handle multiple uploads
handleFileUpdates($model, array $tempFolders, array $removedFiles, string $collection) Handle file updates
cleanupTempFiles() Clean up old temporary files

Troubleshooting

Common Issues

  1. Images not loading: Check your APP_URL in .env matches your server URL
  2. Styles not working: Ensure FilePond CSS is imported before Tailwind
  3. Upload failures: Verify CSRF token is shared via Inertia middleware
  4. Permission errors: Run php artisan storage:link and check file permissions

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.


Made with ❤️ for the VILT Stack community


All versions of vilt-filepond with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^11.0|^12.0|^13.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 mohamedgaldi/vilt-filepond contains the following files

Loading the files please wait ...