artisanpack-ui/media-library 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

artisanpack-ui/media-library

最新稳定版本:1.2.0

Composer 安装命令:

composer require artisanpack-ui/media-library

包简介

Media library package for ArtisanPack UI

README 文档

README

Tests PHP Version Laravel Version

A comprehensive media management package for Laravel applications with support for image processing, folder organization, tagging, and modern image format conversion (WebP/AVIF).

Features

Core Features

  • 📁 Hierarchical Folder Organization - Organize media into nested folders
  • 🏷️ Tag Management - Tag media items for easy categorization
  • 🖼️ Image Processing - Automatic thumbnail generation in multiple sizes
  • 🚀 Modern Image Formats - Automatic conversion to WebP and AVIF
  • 📦 Storage Abstraction - Support for multiple storage backends via Laravel's filesystem
  • 🎬 Video Support - Video thumbnail extraction using FFmpeg (optional)
  • 🔍 Advanced Search & Filtering - Search by name, filter by type, folder, or tag
  • 🎯 Drag & Drop Upload - Modern upload interface with progress tracking
  • 🖱️ Media Modal Component - Single/multi-select modal for choosing media with context support
  • 🔐 Permission-based Access Control - Granular capability-based permissions
  • 🎨 Publishable Views - Customize all Blade views to match your design
  • 🧪 Comprehensive Test Coverage - Over 500 tests with 90%+ coverage

New in v1.1

  • Livewire 4 Streaming Uploads - Real-time upload progress with wire:stream (automatic fallback for Livewire 3)
  • 📊 Media Statistics Dashboard - KPI cards with sparklines showing upload trends, storage usage, and type distribution
  • 📤 Table Export - Export media library data to CSV, XLSX, or PDF formats
  • 🪟 Glass Effects - Modern glassmorphism UI with customizable blur and transparency
  • 🧩 Visual Editor Integration - MediaPicker component for CMS visual editors with block content helpers
  • ⌨️ Keyboard Navigation - Full keyboard support for media selection (arrow keys, Enter, Escape)
  • 🕐 Recently Used Media - Quick access to recently selected media items
  • ⚙️ Feature Flags - Granular control over features via configuration

Requirements

  • PHP 8.2 or higher
  • Laravel 12.0 or higher
  • Intervention Image 3.0 for image processing
  • FFmpeg (optional, for video thumbnail extraction)

Installation

Install via Composer:

composer require artisanpack-ui/media-library

Quick Start

// Upload media
$media = apUploadMedia($file, [
    'title' => 'My Image',
    'alt_text' => 'Alt text for accessibility',
    'folder_id' => 1,
]);

// Get media URL
$url = apGetMediaUrl($mediaId, 'thumbnail');

// Display image
$media = apGetMedia($mediaId);
echo $media->displayImage('large', ['class' => 'img-fluid']);

What's New in v1.1

Livewire 4 Streaming Uploads

Real-time upload progress with automatic Livewire 3 fallback:

<livewire:media-upload-zone wire:stream="uploadProgress" />

Visual Editor Integration

Embed the MediaPicker in your CMS visual editor:

<livewire:media-picker
    context="featured-image"
    :allowed-types="['image']"
    :multi-select="false"
/>

Media Statistics Dashboard

Display KPI cards with sparklines:

<livewire:media-statistics
    :show-sparklines="true"
    :sparkline-days="30"
/>

Table Export

Export your media library to various formats:

<x-artisanpack-table-export
    :formats="['csv', 'xlsx', 'pdf']"
    filename="media-export"
/>

Documentation

📚 Complete Documentation

Getting Started

Usage

Visual Editor Integration

Dashboard & Statistics

API & Integration

Reference

Testing

Run the test suite:

composer test

Contributing

Contributions are welcome! Please ensure all tests pass and code follows ArtisanPack UI Code Standards.

Security

If you discover a security vulnerability, please send an email to security@artisanpack.com.

Credits

  • Jacob Martella
  • Intervention Image for image processing
  • PHP-FFMpeg for video processing

License

This package is proprietary software developed by ArtisanPack UI.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固