PHPackages                             tuhaokuai/tuhaokuai - 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. tuhaokuai/tuhaokuai

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

tuhaokuai/tuhaokuai
===================

Compress Image

v1.1(10y ago)118Apache2PHPPHP &gt;=5.1.0

Since Mar 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tuhaokuai/tuhaokuai)[ Packagist](https://packagist.org/packages/tuhaokuai/tuhaokuai)[ Docs](http://www.tuhaokuai.com/)[ RSS](/packages/tuhaokuai-tuhaokuai/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

### tuhaokuai php通过composer安装

[](#tuhaokuai-php通过composer安装)

@官方网站()

#### 安装

[](#安装)

`composer require tuhaokuai/tuhaokuai`

#### 在视图渲染处添加如下代码

[](#在视图渲染处添加如下代码)

```

    $tu = new tuhaokuai();
    $content = $tu->output($content);

```

在入口文件中加入
--------

[](#在入口文件中加入)

```
require __DIR__.'/../vendor/autoload.php';

```

或

```
require __DIR__.'/vendor/autoload.php';

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b434b7075917e97f7040d5f455a7280a7705e00ded81c006bdc73734372cfc15?d=identicon)[tuhaokuai](/maintainers/tuhaokuai)

---

Top Contributors

[![tuhaokuai](https://avatars.githubusercontent.com/u/15903273?v=4)](https://github.com/tuhaokuai "tuhaokuai (2 commits)")

---

Tags

imagecompresscdn

### Embed Badge

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

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k54.4M138](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

5520.3M9](/packages/intervention-gif)

PHPackages © 2026

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