Download the PHP package mansoor/filament-unsplash-picker without Composer

On this page you can find all versions of the php package mansoor/filament-unsplash-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 filament-unsplash-picker

Unsplash Picker for Filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Unsplash gallery for Filament. Search and pick any image from Unsplash.com, specify which size to use.

Announcement

This package is being re-written and will mostly probably be ready to use after Filament v4. Re-writing this package is allowing me to work on remaining features and remove unnecessary hacks. You may check the re-write branch and the progress on todo list.

Installation

You can install the plugin via composer:

Add Unsplash Client ID to config/services.php

Integrate plugin Tailwind CSS by creating a custom Filament theme. After you have created your custom theme, add Unsplash Picker views to your new theme's tailwind.config.js file located in resources/css/filament/admin/tailwind.config.js:

Usage

Just add the UnsplashPickerAction to your FileUpload Field's action.

This plugin also supports all the features for Spatie Media Libaray Plugin

Specifying Image Size

You can specify which image size to use.

Available sizes:

Choose multiple photos

If you add ->multiple() to your FileUpload field, the plugin will allow you to pick multiple images. The plugin respects the validation so you will only be able to pick max files set by the FileUpload field.

Specifying Per Page

You may specify how many photos to show per page by appending ->perPage() method.

Enable/Disable Square Mode

You can choose to dispaly images in square which uses aspect-square class from Tailwind CSS or disable it to display images in original height.

Default search

You may set the default search input.

You can also pass a custom closure to get search input from a field and return the search string.

Hooks

Similar to core Filament, Unsplash picker provides two hooks beforeUpload and afterUpload to let you use Unsplash data.

Customization

The UnsplashPickerAction is simple Filament Form Action and you may override all the available methods. The Image picker component is a Livewire component, which is easy to extend.

Optionally, you can publish the views using

[!IMPORTANT] When defining the extraAlpineAttributes method for SpatieMediaLibraryFileUpload or FileUpload field, make sure to merge the Alpine attributes from UnsplashPickerAction.

Upgrade to 1.x

This plugin is re-written but it is very small and simple, so upgrade is very easy. If you follow the docs from top to bottom, you should be good to use the latest version.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-unsplash-picker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.16.4
illuminate/contracts Version ^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 mansoor/filament-unsplash-picker contains the following files

Loading the files please wait ....