PHPackages                             liryan/easythumb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. liryan/easythumb

ActiveLibrary[Image &amp; Media](/categories/media)

liryan/easythumb
================

project for laravel,make thumb simpler and easier

123PHP

Since Dec 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/liryan/easythumb)[ Packagist](https://packagist.org/packages/liryan/easythumb)[ RSS](/packages/liryan-easythumb/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#使用说明

\#安装 composer require "liryan/easythumb" "dev-master"

\#使用方法

1.在config/app.php 增加provider

```
providers' => [
...
EasyThumb\EasyThumbProvider::class
];

```

增加facade

```
'aliases' => [
...
'EasyThumb'=>EasyThumb\EasyThumb::class
];

```

2.在controller中使用 开头增加

```
use EasyThumb\EasyThumb;
use Exception;

function upload_test()
{
    try{
        $url=EasyThumb::upload("upfile")           //上传文件表单字段名
        ->where(public_path().'/upimages')         //文件要存放的路径
        ->autodir(EasyThumb::SHA1_DIR)             //自动创建目录sha1(file) 取前４个字符增加两级目录 TIME_DIR 年月/日小时
        ->limit(1000*1000,EasyThumb::PNG|EasyThumb::GIF|EasyThumb::JPG)  //限制尺寸字节，格式，
        ->size(100,100,EasyThumb::SCALE_FREE)       //自由缩放  size可以调用多个
        ->size(200,200,EasyThumb::SCALE_PROJECTIVE) //等比缩放
        ->done();
    }
    catch(Exception $e){
        echo $e->getMessage();
    }
}

function local_test()
{
    try{
        $url=EasyThumb::from(public_path().'/upimages/filename.jpg')    //要处理的文件路径
        ->size(100,100,EasyThumb::SCALE_FREE)       //自由缩放  size可以调用多个
        ->size(200,200,EasyThumb::SCALE_PROJECTIVE) //等比缩放
        ->done();
    }
    catch(Exception $e){
        echo $e->getMessage();
    }
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d596c5ee49eb50b33949769ac07b68d4deb87159792157b6e876fa1f96fdef?d=identicon)[liryan](/maintainers/liryan)

---

Top Contributors

[![liryan](https://avatars.githubusercontent.com/u/12691050?v=4)](https://github.com/liryan "liryan (3 commits)")

### Embed Badge

![Health badge](/badges/liryan-easythumb/health.svg)

```
[![Health](https://phpackages.com/badges/liryan-easythumb/health.svg)](https://phpackages.com/packages/liryan-easythumb)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
