Download the PHP package mhshagor/file-picker without Composer

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

File Picker for Laravel

A beautiful and customizable image picker component for Laravel applications with drag-and-drop support, multiple preview types, and file validation.

Features

Installation

1. Install the package

If you are not using Laravel, you do not need Composer. Use the standalone instructions below.

2. Publish Assets

Publish the CSS and JS files to your resources folder:

This will copy files to:

3. Add to your app.js

Add this line to your resources/js/app.js:

4. Add to your app.css

Add this line to your resources/css/app.css:

5. Compile your assets

Usage

Basic Usage

Advanced Usage

Standalone HTML/JS Usage (No Laravel)

Copy these files from the package into your project and include them in your HTML:

Then use:

Example:

Parameters

Parameter Type Default Description
name string required Input field name
id string (auto-generated) Input field ID
label string empty Display label for the field
multiple boolean false Allow multiple file selection
max number 2 Maximum file size in MB
type string 'image' Accept 'image' or 'file'
preview boolean true Show file preview
previewType string 'grid' Preview style: 'grid', 'list', 'file', 'thumbnail', 'dropdown'
required boolean false Make field required
class string empty Additional CSS classes
labelClass string empty Additional CSS classes for label

Preview Types

Profile Preview

Shows a circular profile picture preview.

Grid Preview

Shows files in a responsive grid layout with thumbnails.

List Preview

Displays files in a vertical list with thumbnails and filenames.

Thumbnail Preview

Shows small thumbnails in a compact horizontal layout.

File Preview

Displays files as downloadable links.

Dropdown Preview

Shows a dropdown with file count and list when clicked.

File Validation

The component includes built-in validation:

Styling

The component uses Tailwind CSS classes and includes:

You can customize the appearance by:

  1. Overriding the CSS classes
  2. Adding custom classes via the class parameter
  3. Modifying the published Blade component

Form Integration

The component integrates seamlessly with Laravel forms:

Error Handling

The component automatically displays Laravel validation errors:

File Processing

In your controller, handle the uploaded files:

Customization

Custom Component Location

If you want to customize the component, you can modify the published files:

Custom Styling

Add custom CSS to override default styles:

Browser Support

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

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

Support

For support, please contact mhshagor.


Made with ❤️ for the Laravel community


All versions of file-picker with dependencies

PHP Build Version
Package Version
No informations.
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 mhshagor/file-picker contains the following files

Loading the files please wait ...