定制 richan-fongdasen/laravel-glide 二次开发

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

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

richan-fongdasen/laravel-glide

最新稳定版本:1.1.0

Composer 安装命令:

composer require richan-fongdasen/laravel-glide

包简介

README 文档

README

A simple way to enable Glide in your Laravel Application.

Synopsis

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. You can find out more about Glide in the official documentation.

Table of contents

Setup

Install the package via Composer :

$ composer require richan-fongdasen/laravel-glide

Configuration

You can publish the package configuration using this php artisan command

$ php artisan vendor:publish --provider="RichanFongdasen\Glide\GlideServiceProvider"

The artisan command above should make you a copy of package configuration located in config/glide.php

return [
    'asset_url_prefix'       => '/assets',
    'default_headers'        => [
        'Cache-Control' => 'max-age=31536000, public',
    ],
    'default_image_format'   => 'webp',
    'disks'                  => [
        'cache'  => env('GLIDE_CACHE_DISK', 'local'),
        'source' => env('GLIDE_SOURCE_DISK', 'public'),
    ],
    'driver'                 => env('GLIDE_DRIVER', 'imagick'),
    'max_image_size'         => 2048*2048,
    'server'                 => true,
    'server_hostname'        => env('GLIDE_SERVER_HOSTNAME', 'localhost:8000'),
    'sign_key'               => env('GLIDE_SIGN_KEY'),
    'url_scheme'             => env('GLIDE_URL_SCHEME', 'http'),
];

Usage

This section is currently under construction.

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-03