PHPackages                             suncky/stat-sdk - 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. suncky/stat-sdk

ActiveCurl-extension[Utility &amp; Helpers](/categories/utility)

suncky/stat-sdk
===============

web php stat sdk

06PHP

Since Nov 9Pushed 9y agoCompare

[ Source](https://github.com/suncky/stat-sdk)[ Packagist](https://packagist.org/packages/suncky/stat-sdk)[ RSS](/packages/suncky-stat-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

调用方式
----

[](#调用方式)

### 调用方法1

[](#调用方法1)

```
$operate = new Operation(['siteHash' => 'ab4e2cebd0f7f7442c57ae9a5cf5fe48', 'key' => 'a98yq239hjtoqgaog90agua0j', 'url' => 'http://uba.dev.xsteach.com/']);
$data = $operate->turn(apiName, $eventType, $user_id, $data, $headers); // $data 和 $headers 是键值对数组
if($error = $data[1]) {
    echo 'code:'.$error->code().'message'.$error->message();
} else {
    print_r($data[0]);
}
```

### 调用方法2

[](#调用方法2)

```
   //配置中
   $config['components']['trail']  => [
                   'class' => 'xsteach\statSdk\processing\Operation',
                   'siteHash' => 'ab4e2cebd0f7f7442c57ae9a5cf5fe48',
                   'key' => '',
                   'url' => 'http://uba.dev.xsteach.com/'
               ]

    $data = Yii::$app->trail->turn('c', 'a', '323', [ 'tm' => 1465986567, 'course' => [['cid' => '123', 'cn' => '测试课程收藏2', 'cp' => '2300','st' =>0],['cid' => '124', 'cn' => '证书收藏2', 'cp' => '1400','st' =>1]]]);
    if($error = $data[1]) {
        echo 'code:'.$error->code().'message'.$error->message();
    } else {
        print_r($data[0]);
    }
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23294189?v=4)[suncky](/maintainers/suncky)[@suncky](https://github.com/suncky)

---

Top Contributors

[![SunGingy](https://avatars.githubusercontent.com/u/12611338?v=4)](https://github.com/SunGingy "SunGingy (1 commits)")

### Embed Badge

![Health badge](/badges/suncky-stat-sdk/health.svg)

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

###  Alternatives

[alirahimi/livewire-persian-datepicker

The Persian Datepicker component for Laravel Livewire

285.6k](/packages/alirahimi-livewire-persian-datepicker)

PHPackages © 2026

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