msonowal/laravel-tinify
Composer 安装命令:
composer require msonowal/laravel-tinify
包简介
Laravel Facade for tinify API
README 文档
README
This package provides integration with the Tinify a.k.a TinyPNG API.
The package simply provides a Tinify facade that acts as a wrapper to the tinify/tinfiy-php
It was originaly developed by Marvin Oßwald
I added functionality to use of laravel bulit in config cache helper which was having issues of returning null when configs are cached via php artisan config:cache because it was directly loading via env helper.
So, I converted it to use the api_key from config which can be defined to load from env and still use the
php artisan config:cache command and it works.
For Laravel < 5.5, please use the 1.0.2 Tag!
Installation
Install the package via Composer:
composer require msonowal/laravel-tinify
Laravel 5.5+:
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
... msonowal\LaravelTinify\LaravelTinifyServiceProvider::class ...
Add alias to config/app.php:
... 'Tinify' => msonowal\LaravelTinify\Facades\Tinify::class ...
Configuration
Publish the Configuration for the package which will create the config file tinify.php inside config directory
php artisan vendor:publish --provider="msonowal\LaravelTinify\LaravelTinifyServiceProvider"
Set a env variable "TINIFY_APIKEY" with your issued apikey or set api_key into config/tinify.php
This package is available under the MIT license.
msonowal/laravel-tinify 适用场景与选型建议
msonowal/laravel-tinify 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.2k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2017 年 03 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「tinypng」 「tinify」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 msonowal/laravel-tinify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 msonowal/laravel-tinify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 msonowal/laravel-tinify 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Make your web shop faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.
Facade of Tinify API for Yii2 Framework
Yii2 integration for TinyPng
Laravel Facade for tinify API
Pimcore Bundle - Minifies your PNG and JPEG Assets on uploading to Pimcore
A plugin to convert assets using tinyPng
统计信息
- 总下载量: 5.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-14