Download the PHP package sandeep816/smart-media-library without Composer

On this page you can find all versions of the php package sandeep816/smart-media-library. 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 smart-media-library

Smart Media Library

Tests

A powerful, reusable media library for Laravel & Filament.

Smart Media Library provides a centralized WordPress-style media management experience for Laravel applications using Filament.

Designed as an independent, reusable package that can be dropped into any Laravel application running Filament 5 without coupling to specific host models or hardcoded panel configurations.


Features


Requirements & Compatibility

Declared Constraints (composer.json)

Verified Environment Matrix


Installation

1. Require the Package

Install the package via Composer:

Local Package Development

If developing or testing locally via a Composer path repository in your host application's composer.json:

Then require the development package:

2. Publish Configuration & Migrations

Publish the package configuration:

Publish and run the database migrations:

(Optional) If you wish to customize Blade views or front-end CSS:


Filament Panel Registration

Register the MediaLibraryPlugin in your Filament Panel Provider (e.g., app/Providers/Filament/AdminPanelProvider.php):

Fluent Plugin Customization

You can customize navigation, page headers, and authorization per panel:


Configuration Reference

The published config/filament-media-library.php file provides extensive options:


Authorization & Security

Smart Media Library provides three tiers of authorization:

1. Fluent Plugin Closure

Define rules directly when registering the plugin in your panel:

Or globally via the MediaAuthorization facade/class:

2. Laravel Model Policy

Define a standard Laravel policy for FilamentMediaLibrary\Models\Media in AuthServiceProvider or auto-discovery:

3. Laravel Gate Abilities

Define abilities prefixed with filament-media-library.:

Supported abilities: view-any, upload, update, trash, restore, delete, select.


MediaPicker Form Component

The MediaPicker form component embeds seamlessly into any Filament Form or Resource.

Value Mode (Single Media)

Stores the Media record's UUID string directly in a model attribute:

Value Mode (Multiple Media)

Stores an array of UUID strings (typically in a JSON or text column):

Attachment Mode (Polymorphic Relationships)

Synchronizes media attachments using the media_attachments table without altering your host model's schema:

Type Constraints & Upload Control

Restrict what users can select or upload:


Interacting with Attachments in Eloquent

Your Eloquent models can optionally use the InteractsWithMediaAttachments trait:

Querying Attached Media:

Managing Attachments Programmatically:


Programmatic Uploading

You can upload files from controllers, CLI commands, or jobs using MediaUploader:


Image Processing & Derivatives

The package includes a built-in, lightweight, zero-dependency image derivative system designed to generate optimized previews and thumbnails without external third-party services or heavy dependencies:

Model Conversion API

The Media model provides intuitive methods for accessing derivatives:

Configuration & Custom Presets

Publish filament-media-library.php to customize presets or output formats:

CLI Command: Regenerate Derivatives

You can generate or rebuild derivatives at any time using the Artisan command:


Clean Architecture & Boundary Isolation

Independence Disclaimer

Smart Media Library is an independent open-source community package for Filament. It is not affiliated with or endorsed by Filament.


Development & Testing

Smart Media Library includes a standalone test suite powered by Orchestra Testbench and PHPUnit:


License

The MIT License (MIT).


All versions of smart-media-library with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.8
illuminate/support Version ^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 sandeep816/smart-media-library contains the following files

Loading the files please wait ...