PHPackages                             devarts/plausible-php - 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. devarts/plausible-php

AbandonedArchivedLibrary[API Development](/categories/api)

devarts/plausible-php
=====================

A PHP wrapper for using Plausible API

v4.0.1(1y ago)7110.0k↓43.3%1MITPHPPHP ^8.0

Since Sep 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/devarts/plausible-php)[ Packagist](https://packagist.org/packages/devarts/plausible-php)[ Docs](https://github.com/devarts/plausible-php)[ RSS](/packages/devarts-plausible-php/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

Plausible PHP
=============

[](#plausible-php)

[![Build Status](https://github.com/devarts/plausible-php/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/devarts/plausible-php/actions?query=branch%3Amaster)[![Latest Stable Version](https://camo.githubusercontent.com/a7c5b30d29b4a9e5fbeaf485d4730421eee5085024d5e76b11460e6e2071d63b/68747470733a2f2f706f7365722e707567782e6f72672f646576617274732f706c61757369626c652d7068702f762f737461626c652e737667)](https://packagist.org/packages/devarts/plausible-php)[![PHP Version Require](https://camo.githubusercontent.com/015490102cb7a18127b1088892affecf41215d775e1661740c80dfeedcd8fcb1/68747470733a2f2f706f7365722e707567782e6f72672f646576617274732f706c61757369626c652d7068702f726571756972652f706870)](https://packagist.org/packages/devarts/plausible-php)[![License](https://camo.githubusercontent.com/d90cad1aab6a1150c854a1d41f9738f5f62f0e17cc9319d2c900302587f5a634/68747470733a2f2f706f7365722e707567782e6f72672f646576617274732f706c61757369626c652d7068702f6c6963656e73652e737667)](https://packagist.org/packages/devarts/plausible-php)

The library provides access to the Plausible API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves from API responses.

Install
-------

[](#install)

Via Composer

```
$ composer require devarts/plausible-php
```

Usage
-----

[](#usage)

Simple usage looks like:

```
use Devarts\PlausiblePHP\Configuration;
use Devarts\PlausiblePHP\PlausibleApi;
use Devarts\PlausiblePHP\Support\Metric;
use Devarts\PlausiblePHP\Support\Filter;

$plausible = new PlausibleApi(Configuration::create('plausible_api_token'));

$metrics = Metric::create()
    ->addBounceRate()
    ->addVisitors();

$filters = Filter::create()
    ->addVisitBrowser('Chrome', Filter::NOT_EQUAL);

$result = $plausible->stats()->getAggregate('example.com', [
    'metrics' => $metrics,
    'filters' => $filters,
]);

echo $result->bounce_rate->value;
```

Credits
-------

[](#credits)

- [Marko Ognjenović](https://github.com/marko-ogg)
- [All Contributors](https://github.com/devarts/plausible-php/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86% 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 ~62 days

Recently: every ~42 days

Total

12

Last Release

711d ago

Major Versions

v1.0.4 → v2.0.02022-09-11

v2.0.0 → v3.0.02023-12-26

v3.3.0 → v4.0.02024-07-21

PHP version history (3 changes)v1.0.0PHP &gt;=7.4

v1.0.4PHP ^7.4|^8.0

v4.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/05724825a0e872b9a48bb6ee012cc694d27822b213621616abbcc59095a3756b?d=identicon)[marko-ogg](/maintainers/marko-ogg)

---

Top Contributors

[![marko-ogg](https://avatars.githubusercontent.com/u/15163962?v=4)](https://github.com/marko-ogg "marko-ogg (153 commits)")[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (5 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (4 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (2 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (2 commits)")[![therohitdas](https://avatars.githubusercontent.com/u/43847374?v=4)](https://github.com/therohitdas "therohitdas (1 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![zackkitzmiller](https://avatars.githubusercontent.com/u/111536?v=4)](https://github.com/zackkitzmiller "zackkitzmiller (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![bencorlett](https://avatars.githubusercontent.com/u/181919?v=4)](https://github.com/bencorlett "bencorlett (1 commits)")[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![Swader](https://avatars.githubusercontent.com/u/1430603?v=4)](https://github.com/Swader "Swader (1 commits)")

---

Tags

api-wrapperphpplausible-analyticsphpapiclientwrapperplausible

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devarts-plausible-php/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[timkley/weaviate-php

A PHP HTTP Client for the Weaviate REST API

3867.2k2](/packages/timkley-weaviate-php)

PHPackages © 2026

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