onedesign/oneimgix
Composer 安装命令:
composer require onedesign/oneimgix
包简介
Tools for working with Imgix in Craft
README 文档
README
Tools for working with Imgix in Craft
Installation
- Download & unzip the file and place the
oneimgixdirectory into yourcraft/pluginsdirectory - -OR- install with Composer via
composer require onedesign/oneimgix - Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
oneimgixfor Craft to see it. GitHub recently started appending-master(the branch name) to the name of the folder for zip file downloads. - Update the settings for the plugin as explained below.
Use
Configuration:
OneImgix expects the following settings to be configured:
- Imgix API Key: Your Imgix API key, obtained from the Imgix control panel.
- Imgix Source Name: The name of your source defined in the Imgix control panel.
- Secure URL Token: If you have
Secure URLenabled for your Imgix source, this should be theSecure URL Tokenvalue listed there. - Asset Base URL: The base path to your original assets, which will be replaced with the Imgix base URL by this plugin. This will typically be something like
http://mysite.com/assets/orhttps://s3.amazonaws.com/my-bucket-name/
Generating Image URLs in Twig:
{% set url = craft.oneImgix.url(myAssetField.first, {
w: 1000,
h: 800,
q: 50,
auto: 'format',
fit: 'max'
}) %}
Any options supported by the Imgix image API can be passed into these options. OneImgix will do the work of transforming the original asset URL into the appropriate Imgix URL based on your plugin settings.
Clearing Imgix Caches:
Whenever an asset in Craft is replaced or deleted, OneImgix will attempt to automatically clear the corresponding Imgix cache for that asset.
onedesign/oneimgix 适用场景与选型建议
onedesign/oneimgix 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 358 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「Craft」 「craftcms」 「craft-plugin」 「one imgix」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 onedesign/oneimgix 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 onedesign/oneimgix 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 onedesign/oneimgix 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Integrate with Snipcart.
Restrict user registration by domain in Craft CMS, allows you to limit who can register for your site based on their email address.
统计信息
- 总下载量: 358
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-04