定制 xunextw/laravel-imgix 二次开发

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

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

xunextw/laravel-imgix

最新稳定版本:4.2.0

Composer 安装命令:

composer require xunextw/laravel-imgix

包简介

Laravel package for generating URLs with Imgix.

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Laravel package for generating URLs with Imgix.

Requirements

Make sure all dependencies have been installed before moving on:

Install

First, pull the package via Composer:

$ composer require nasyrov/laravel-imgix

Next, register the service provider in config/app.php:

'providers' => [
    ...
    Nasyrov\Laravel\Imgix\ImgixServiceProvider::class,
    ...
]

Optionally register the facade in config/app.php:

'aliases' => [
    ...
    'Imgix' =>  Nasyrov\Laravel\Imgix\Facades\Imgix::class,
    ...
]

Finally, publish and update the config config/imgix.php:

php artisan vendor:publish --tag=imgix

Usage

Facade

Imgix::createUrl(string $path, array $params = []) : string

$path The path to the image

$params The image parameters

echo Imgix::createUrl('test.jpg', ['w' => 100, 'h' => 100]);

// Prints out:
// http://test.imgix.net/test.jpg?w=100&h=100

Helper

imgix(string $path, array $params = []) : string

$path The path to the image

$params The image parameters

echo imgix('test.jpg', ['w' => 100, 'h' => 100]);

// Prints out:
// http://test.imgix.net/test.jpg?w=100&h=100

Testing

$ composer lint
$ composer test

Security

If you discover any security related issues, please email inasyrov@ya.ru instead of using the issue tracker.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固