定制 tjmpromos/sortable-gallery 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tjmpromos/sortable-gallery

Composer 安装命令:

composer require tjmpromos/sortable-gallery

包简介

Provides a sortable image gallery component with a Filament admin interface.

README 文档

README

Sortable Gallery banner

Sortable Gallery for Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Workflow Status Total Downloads

This is a quickly installable, sortable gallery for Laravel applications. Under the hood, it utilizes Filament for managing assets. We default to using Livewire and Alpine.js for interactions and TailwindCSS for styling, but you are welcome to publish the views and change the front end to whatever you desire.

Prerequisites

Ths package uses the following packages and are required to be installed and configured before installing sortable-gallery:

Optional

These packages are not required, but are used by default for styling and interactions in the view. Feel free to roll your own styling and interactions if you wish.

Installation

Via Composer

composer require tjmpromos/sortable-gallery

Getting Started

New Applications

If you aren't currently using Filament, you'll need to run a few commands to get started. We recommend checking out Filament's documentation for installation instructions, but here are the basics just to get you started quickly.

You'll need to migrate some tables into your database to get started. To do this, simply run:

php artisan migrate

Existing Applications

If you are currently using Filament or have a media table, you may run into conflicts while migrating. To help alleviate this issue, we've provided some publishable migrations. You can export them to your database/migrations directory by running:

php artisan vendor:publish --tag=sortable-gallery-migrations

Publishing and Editing The Config File

But first things first! You should probably publish the config file so that you can create your categories. You can do that by running:

php artisan vendor:publish --tag=sortable-gallery-config

This will create config/sortable-gallery.php which will give you a few options such as where you store media, your tag types and the size of your preview images.

media_library

This can be any number of tag types (think of them like categories) that you wish to group your tags into. We utilize them for things like colors, product options, etc...

preview_image_size

This allows you to set the image preview size for displaying on the front end.

Add to your FilamentPHP v3 admin panel

Add the following to your FilamentPHP AdminPanelProvider.php file or the Panel provider file of your choice:

use Tjmpromos\SortableGallery\SortableGalleryPlugin;

class AdminPanelProvider extends PanelProvider
{
ublic function panel(Panel $panel): Panel
    {
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
             //... other panel config
             ->plugins([
                SortableGalleryPlugin::make(),
            ]);
    }
}

Publishing and Editing the Livewire Component

We use BaguetteBox.js for our lightbox and tried to make the UI as non-intrusive as possible, but you are welcome to use whatever you'd like. You can publish the views and edit the resources/vendor/sortable-gallery/livewire view to use whatever you'd like.

php artisan vendor:publish --tag=sortable-gallery-views

Testing

composer test

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.

tjmpromos/sortable-gallery 适用场景与选型建议

tjmpromos/sortable-gallery 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 367 次下载、GitHub Stars 达 12, 最近一次更新时间为 2022 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「filament」 「tjmpromos」 「sortable-gallery」 「filament-package」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 tjmpromos/sortable-gallery 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 tjmpromos/sortable-gallery 我们能提供哪些服务?
定制开发 / 二次开发

基于 tjmpromos/sortable-gallery 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-05