PHPackages                             zcold/settlement - 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. zcold/settlement

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

zcold/settlement
================

数据埋点

1.1.0(5y ago)09MITPHP

Since Mar 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zcoldh/settlement)[ Packagist](https://packagist.org/packages/zcold/settlement)[ RSS](/packages/zcold-settlement/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

 settlement
============

[](#-settlement-)

 题目2：数据埋点.

Installing
----------

[](#installing)

```
$ composer require zcold/settlement -vvv
```

Usage
-----

[](#usage)

> 1、助手函数

```
settlementAddData($tagId, $data, $num, $time)

```

> 2、对象

```

$s = new Zcold\Settlement\Settlement();
/**
 * @param int $tagId 场景id
 * @param null $data 数据
 * @param int $num 次数
 * @param null $date_time 时间
 * @return bool
 */
$s->addData(1, [{user_id:1}, 1, '2021-03-04 10:15:00']);

```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/zcold/settlement/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/zcold/settlement/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

1993d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34e3f10a5ae91161b1c6a3460f91765c67d58ae54b32fc6fb0892265aa7dcab6?d=identicon)[Cold](/maintainers/Cold)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-settings

Store your application settings

1.5k7.8M185](/packages/spatie-laravel-settings)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

199336.0k](/packages/fumeapp-modeltyper)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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