定制 peresmishnyk/laravel-glide 二次开发

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

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

peresmishnyk/laravel-glide

Composer 安装命令:

composer require peresmishnyk/laravel-glide

包简介

Glide image transform for laravel

README 文档

README

Latest Version on Packagist Total Downloads The Whole Fruit Manifesto

// TODO: customize this description and delete this line

This package is wrapper for thephpleague/glide-laravel.

Glide is a wonderfully easy on-demand image manipulation library written in PHP. Its straightforward API is exposed via HTTP, similar to cloud image processing services like Imgix and Cloudinary. Glide leverages powerful libraries like Intervention Image (for image handling and manipulation) and Flysystem (for file system abstraction).

Screenshots

Backpack Toggle Field Addon

Installation

Via Composer

composer require peresmishnyk/laravel-glide

Usage

// TODO: explain to your users how to use the functionality this package provides; we've provided an example for a Backpack addon that provides a custom field

The package registers url prefixes /img/... and /glide/...

//your-domain.tld/img/@{disk}/{image_path}?w=200

OR

//your-domain.tld/glide/@{disk}/{image_path}?w=200

something like https://test.site/img/@local/app/galeries/daria.jpg?w=100

where {disk} is any disk from config/filesystems.php

Example filesystems config

'disk' =>[
    // For access to files in storage
    'local' => [
        'driver' => 'local',
        'root' => storage_path('app'),
    ],
    // For access to files under vcs
    'img' => [
        'driver' => 'local',
        'root' => app_path('../public/img'),
    ],
    ...
    ];

Change log

Changes are documented here on Github. Please see the Releases tab.

Testing

composer test

Contributing

Please see contributing.md for a todolist and howtos.

Security

If you discover any security related issues, please email michkire@gmail.com instead of using the issue tracker.

Credits

License

This project was released under MIT, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.

However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固