PHPackages                             exinfinite/piwik-linker - 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. [API Development](/categories/api)
4. /
5. exinfinite/piwik-linker

ActiveLibrary[API Development](/categories/api)

exinfinite/piwik-linker
=======================

api wraper for piwik

1.0.1(5y ago)032LGPL-2.1PHPPHP ^5.6

Since Nov 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/exinfinite/piwik-linker)[ Packagist](https://packagist.org/packages/exinfinite/piwik-linker)[ RSS](/packages/exinfinite-piwik-linker/feed)WikiDiscussions main Synced today

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

piwik-linker
============

[](#piwik-linker)

[![Packagist PHP Version Support](https://camo.githubusercontent.com/ac2490ddf35e8561daaebcac712ede41199dd3e6c68878a4b931633a3f3c35bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6578696e66696e6974652f706977696b2d6c696e6b6572)](https://camo.githubusercontent.com/ac2490ddf35e8561daaebcac712ede41199dd3e6c68878a4b931633a3f3c35bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6578696e66696e6974652f706977696b2d6c696e6b6572)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/09d327b0a5f03d7ef2d1a8c77b00089178f11f2e0342d70b599d7469853b624d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6578696e66696e6974652f706977696b2d6c696e6b6572)](https://camo.githubusercontent.com/09d327b0a5f03d7ef2d1a8c77b00089178f11f2e0342d70b599d7469853b624d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6578696e66696e6974652f706977696b2d6c696e6b6572)[![Packagist Version](https://camo.githubusercontent.com/a369ff4c5cefdbcc84cfc281533e230a163a5236586be7c56b2e9d00a6692f75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6578696e66696e6974652f706977696b2d6c696e6b6572)](https://camo.githubusercontent.com/a369ff4c5cefdbcc84cfc281533e230a163a5236586be7c56b2e9d00a6692f75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6578696e66696e6974652f706977696b2d6c696e6b6572)[![Packagist Downloads](https://camo.githubusercontent.com/9eacfe24d1a3837d83124fb8da1145d171dbb0e69457c83fdf169f605933f69d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6578696e66696e6974652f706977696b2d6c696e6b6572)](https://camo.githubusercontent.com/9eacfe24d1a3837d83124fb8da1145d171dbb0e69457c83fdf169f605933f69d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6578696e66696e6974652f706977696b2d6c696e6b6572)[![GitHub](https://camo.githubusercontent.com/1dfc09dea18ad73ae06299361ed07630a5f17238c770e01df2c2b35504341886/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6578696e66696e6974652f706977696b2d6c696e6b6572)](https://camo.githubusercontent.com/1dfc09dea18ad73ae06299361ed07630a5f17238c770e01df2c2b35504341886/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6578696e66696e6974652f706977696b2d6c696e6b6572)

### 安裝

[](#安裝)

```
composer require exinfinite/piwik-linker
```

### 建立設定

[](#建立設定)

```
$config = new \Exinfinite\PiwikLinker\Config('piwik_url', 'site_id', 'auth_token');
```

### 引用模組

[](#引用模組)

```
$live = new \Exinfinite\PiwikLinker\Modules\Live($config);
```

### 串接Piwik API

[](#串接piwik-api)

```
$json = $live->getLastVisitsDetails('day', 'today');//回傳json
```

### 自訂輸出欄位

[](#自訂輸出欄位)

```
$formater = function ($visitor) {
    return [
        'title' => $visitor['exitPageTitle'],
        'url' => $visitor['exitPageUrl']
    ];
};
echo \Exinfinite\PiwikLinker\Parser\Parser::jsonCollectionTransform($json, $formater);
```

輸出結果

```
{
    "data": [
        {
            "title": "page title",
            "url": "page url"
        }
    ]
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2010d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/exinfinite-piwik-linker/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[spatie/laravel-fractal

An easy to use Fractal integration for Laravel applications

1.9k15.1M98](/packages/spatie-laravel-fractal)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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