amjadiqbal/filament-url-image-uploader

A powerful Filament PHP form component that enables seamless image uploads from URLs. Features include image validation, preview functionality, and easy integration with Laravel storage. Perfect for remote image imports, content management, and e-commerce applications built with FilamentPHP.

dev-main 2025-04-02 00:42 UTC

This package is auto-updated.

Last update: 2025-06-02 00:56:22 UTC


README

A powerful Filament PHP form component that enables seamless image uploads from URLs. Features include image validation, preview functionality, and easy integration with Laravel storage. Perfect for remote image imports, content management, and e-commerce applications built with FilamentPHP.

Installation

You can install the package via composer:

composer require amjadiqbal/filament-url-image-uploader

Usage

use Amjadiqbal\FilamentUrlImageUploader\UrlImageUploader;

UrlImageUploader::make('image')->directory('images');

Response Format

[
    "image" => "images/example.svg",
    "image_url" => "http://your-domain.com/storage/images/example.svg"
]

Using with Models

// In your model (e.g., app/Models/Post.php)
protected function image(): Attribute
{
    return Attribute::make(
        get: fn ($value) => $value,
        set: fn ($value) => is_array($value) ? $value['image'] : $value,
    );
}

Configuration

Directory Configuration

You can customize the storage directory:

UrlImageUploader::make('image')->directory('custom/path/here');

Support

Documentation

Community

Professional Support

Need expert help? Hire me on Upwork for:

  • Custom implementations
  • Feature development
  • Technical consulting
  • Priority support

Changelog

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

Security Vulnerabilities

If you discover a security vulnerability, please report it in our Security Room on Discord. All security vulnerabilities will be promptly addressed.

Contributing

We welcome contributions!

Contributors

Made with contrib.rocks.

Custom Development

Hire me on Upwork for:

  • Package integration
  • Custom feature development
  • Technical consultation
  • Project implementation

Community Support

For priority support and enterprise solutions, please reach out via Upwork for direct assistance.