PHPackages                             zodream/html - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zodream/html

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zodream/html
============

html

5.3(2y ago)073MITPHPPHP &gt;=8.2

Since Dec 10Pushed 5d ago1 watchersCompare

[ Source](https://github.com/zodream/html)[ Packagist](https://packagist.org/packages/zodream/html)[ Docs](https://github.com/zodream/html)[ RSS](/packages/zodream-html/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (0)

html
====

[](#html)

html模块组

Progress 使用指南
-------------

[](#progress-使用指南)

### 注意：此方法不适用于并发高场景，目前不支持嵌套

[](#注意此方法不适用于并发高场景目前不支持嵌套)

实例

```
class Progress extends Zodream\Html\Progress {

    public function init() {
        $this->data = [$this->options['a'], 2];
        $this->setStart(0);
    }

    public function play($item) {
        // $item = 1
        // $item = 2
    }
}

$progress = new Progess([
    'a' => 1
])
$progress();
```

具体和web 协作显示进度

```
function getProgress() {
    if (isset($_POST['key'])) {
        return cache($_POST['key']);
    }
    return new Progess([
       'a' => 1
   ]);
}

$progress = getProgress();
json_encode($progress());
```

js 部分

```
loopStep = function (data) {
    if (data.key) {
        postJson('/async', data, loopStep);
        return;
    }
    // 完成
}
postJson('/async', {}, loopStep);
```

返回值说明

```
'key' => '缓存key, 有时表示执行未完成，需要传此key继续',
'current' => '当前执行的最后一个',
'next' => '下一个',
'count' => '总个数',
'time' => '本次执行时间',
'spent' => '总执行时间'
```

完成返回

```
'count' => '总个数',
'spent' => '总执行时间'
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance65

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 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 ~255 days

Recently: every ~274 days

Total

10

Last Release

780d ago

Major Versions

1.2 → 4.02020-04-04

2.0 → 5.02021-03-25

PHP version history (4 changes)v1.0PHP &gt;=5.6.0

5.0PHP &gt;=8.0

5.2PHP &gt;=8.1

5.3PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![zx648383079](https://avatars.githubusercontent.com/u/9996852?v=4)](https://github.com/zx648383079 "zx648383079 (120 commits)")

---

Tags

htmlzodream

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-html

A fluent html builder

8376.4M72](/packages/spatie-laravel-html)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5234.2M76](/packages/ckeditor-ckeditor)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21520.9M15](/packages/caxy-php-htmldiff)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

2899.6M48](/packages/yajra-laravel-datatables-html)[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3383.9M34](/packages/wa72-htmlpagedom)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1697.5M106](/packages/tinymce-tinymce)

PHPackages © 2026

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