coffeecode/cropper
Composer 安装命令:
composer require coffeecode/cropper
包简介
It is a easy and simple PHP image cropper and cache thumb manager
关键字:
README 文档
README
Cropper is a component that simplifies the creation of JPG and PNG image thumbnails with a cache engine. Cropper CC creates your image for each part required in the application with zero complexity.
Cropper é um componente que simplifica a criação de miniaturas de imagens JPG e PNG com um motor de cache. O Cropper CC cria versões de suas imagens para cada dimensão necessária na aplicação com zero de complexidade.
Webp Thumbnails:
Published in version 1.3.* by default how thumbnails are converted to webP.
Adicionado na versão 1.3.* por padrão as miniaturas são convertidas para webP.
About CoffeeCode
CoffeeCode is a set of small and optimized PHP components for common tasks. Held by Robson V. Leite and the UpInside team. With them you perform routine tasks with fewer lines, writing less and doing much more.
CoffeeCode é um conjunto de pequenos e otimizados componentes PHP para tarefas comuns. Mantido por Robson V. Leite e a equipe UpInside. Com eles você executa tarefas rotineiras com poucas linhas, escrevendo menos e fazendo muito mais.
Highlights
- Simple Thumbnail Creator (Simples criador de miniaturas)
- Cache optimization per dimension (Otimização em cache por dimensão)
- Media Control by Filename (Contrôle de mídias por nome do arquivo)
- Cache cleanup by filename and total (Limpeza de cache por nome de arquivo e total)
- Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)
Installation
Cropper is available via Composer:
"coffeecode/cropper": "2.0.*"
or run
composer require coffeecode/cropper
Documentation
They are just two methods to do all the work. You just need to call make to create or use thumbnails of any size, or flush to free the cache of a file or the entire folder. CoffeeCode Cropper works like this:
São apenas dois métodos para fazer todo o trabalho. Você só precisa chamar o make para criar ou usar miniaturas de qualquer tamanho, ou o flush para liberar o cache de um arquivo ou da pasta toda. CoffeeCode Cropper funciona assim:
Create thumbnails
<?php $c = new \CoffeeCode\Cropper\Cropper("patch/to/cache"); echo "<img src='{$c->make("images/image.jpg", 500)}' alt='Happy Coffee' title='Happy Coffee'>"; echo "<img src='{$c->make("images/image.jpg", 500, 300)}' alt='Happy Coffee' title='Happy Coffee'>";
Clear cache
<?php $c = new \CoffeeCode\Cropper\Cropper("patch/to/cache"); //flush by filename $c->flush("images/image.jpg"); //flush cache folder $c->flush();
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email cursos@upinside.com.br instead of using the issue tracker.
Se você descobrir algum problema relacionado à segurança, envie um e-mail para cursos@upinside.com.br em vez de usar o rastreador de problemas.
Thank you
Credits
- Robson V. Leite (Developer)
- UpInside Treinamentos (Team)
- All Contributors (This Rock)
License
The MIT License (MIT). Please see License File for more information.
coffeecode/cropper 适用场景与选型建议
coffeecode/cropper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 61.44k 次下载、GitHub Stars 达 251, 最近一次更新时间为 2018 年 09 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「upload」 「image cache」 「image crop」 「Coffeecode」 「image thumb」 「thumbnails jpg」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 coffeecode/cropper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 coffeecode/cropper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 coffeecode/cropper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
Laravel 5 - Repositories to the database layer
The Yii2 extension uses jQuery PrettyPhoto and OwlCarousel js and makes image galary from php array of structure defined.
统计信息
- 总下载量: 61.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 762
- 点击次数: 11
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-24