Download the PHP package minemindmedia/laravel-mmmedia without Composer

On this page you can find all versions of the php package minemindmedia/laravel-mmmedia. 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 laravel-mmmedia

Laravel MMMedia

A comprehensive Laravel package that provides a global media library and Filament MediaPicker field for managing media assets in your Laravel applications.

Features

Installation

Option 1: Install from Packagist (Recommended)

Option 2: Install directly from GitHub

Add the repository to your composer.json:

Then install:

Publish the configuration file:

Publish and run the migrations:

Quick Start

  1. Add the trait to your model:

  2. Use MediaPicker in your Filament form:

  3. Access the Media Library: Visit your Filament admin panel and you'll see a new "Media" section where you can manage all media items.

Filament v4 Compatibility

This package is 100% natively compatible with Filament v4! No vendor patches required.

🎉 Complete native Filament v4 support achieved in v1.1.3!

Note: If you're using a custom MediaItem model, make sure the generateThumbnail() method is public to avoid visibility conflicts.

Using with Spatie MediaLibrary

If you're already using Spatie MediaLibrary, the MediaPicker will automatically detect and work with your existing media:

Using with Package's Media System

If you prefer to use the package's built-in media system:

Custom MediaItem Model

If you need to customize the MediaItem model, you can create your own and disable automatic binding:

Then create your custom model:

Configuration

The package configuration is located in config/media.php. Here are the key settings:

Usage

1. Add the Trait to Your Models

Add the HasMediaAttachments trait to any model that needs media functionality:

2. Use the MediaPicker in Filament Forms

3. Working with Media in Your Code

4. MediaPicker Configuration Options

The MediaPicker component supports various configuration options:

Media Library Admin

The package automatically registers a MediaItemResource in your Filament admin panel. You can:

API Endpoints

The package provides API endpoints for programmatic access:

Advanced Usage

Custom Storage Paths

You can customize where different file types are stored:

Thumbnail Generation

The package supports thumbnail generation for images:

Usage Tracking

The package automatically tracks where media items are used:

Events

The package fires events when media items are created, updated, or deleted:

Thumbnail Generation

The package supports automatic thumbnail generation using Intervention Image:

Install Intervention Image (Optional)

Generate Thumbnails

Custom Thumbnail Configuration

You can configure thumbnail generation in config/media.php:

Testing

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Support

For support, please email [email protected] or create an issue on GitHub.

Auto-update test


All versions of laravel-mmmedia with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0
filament/filament Version ^3.0|^4.0
spatie/laravel-medialibrary Version ^10.0|^11.0
livewire/livewire Version ^3.0|^4.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 minemindmedia/laravel-mmmedia contains the following files

Loading the files please wait ...