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

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

posthog/posthog-php
===================

PostHog PHP Library

4.8.8(4d ago)314.9M—5.9%32[5 issues](https://github.com/PostHog/posthog-php/issues)[1 PRs](https://github.com/PostHog/posthog-php/pulls)8MITPHPPHP &gt;=8.2CI passing

Since May 22Pushed 4d ago14 watchersCompare

[ Source](https://github.com/PostHog/posthog-php)[ Packagist](https://packagist.org/packages/posthog/posthog-php)[ Docs](https://github.com/PostHog/posthog-php)[ RSS](/packages/posthog-posthog-php/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (21)Versions (143)Used By (8)

PostHog PHP
===========

[](#posthog-php)

[![PHP Version](https://camo.githubusercontent.com/0353adf59366cbf52f7c4dcbbdc80d4e158bada4a26631181b996a894286515c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f7374686f672f706f7374686f672d7068703f6c6f676f3d706870)](https://packagist.org/packages/posthog/posthog-php)[![CI](https://github.com/PostHog/posthog-php/actions/workflows/php.yml/badge.svg)](https://github.com/PostHog/posthog-php/actions/workflows/php.yml)

Please see the main [PostHog docs](https://posthog.com/docs).

SDK usage examples and code snippets live in the official documentation so they stay up to date.

Documentation
-------------

[](#documentation)

- [PHP library docs](https://posthog.com/docs/libraries/php)
- [Laravel integration docs](https://posthog.com/docs/libraries/laravel)

Questions?
----------

[](#questions)

### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)

[](#join-our-slack-community)

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

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md) for local setup and test instructions.

Releasing
---------

[](#releasing)

See [RELEASING.md](RELEASING.md).

###  Health Score

72

—

ExcellentBetter than 100% of packages

Maintenance96

Actively maintained with recent releases

Popularity58

Moderate usage in the ecosystem

Community40

Growing community involvement

Maturity83

Battle-tested with a long release history

 Bus Factor5

5 contributors hold 50%+ of commits

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

Recently: every ~1 days

Total

66

Last Release

4d ago

Major Versions

2.1.1 → 3.0.02022-08-15

3.7.3 → 4.0.02026-01-09

PHP version history (3 changes)2.0.0PHP &gt;=7.1

3.0.0PHP &gt;=8.0

4.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c8665c5fd9aecc249ec2eeaf505e9b4f8733e4a9f66275decd86979b68586fd?d=identicon)[timgl](/maintainers/timgl)

---

Top Contributors

[![EDsCODE](https://avatars.githubusercontent.com/u/13127476?v=4)](https://github.com/EDsCODE "EDsCODE (44 commits)")[![marandaneto](https://avatars.githubusercontent.com/u/5731772?v=4)](https://github.com/marandaneto "marandaneto (44 commits)")[![releaser-posthog-php[bot]](https://avatars.githubusercontent.com/in/2618603?v=4)](https://github.com/releaser-posthog-php[bot] "releaser-posthog-php[bot] (29 commits)")[![yakkomajuri](https://avatars.githubusercontent.com/u/38760734?v=4)](https://github.com/yakkomajuri "yakkomajuri (25 commits)")[![neilkakkar](https://avatars.githubusercontent.com/u/7115141?v=4)](https://github.com/neilkakkar "neilkakkar (23 commits)")[![joesaunderson](https://avatars.githubusercontent.com/u/11272509?v=4)](https://github.com/joesaunderson "joesaunderson (18 commits)")[![imhmdb](https://avatars.githubusercontent.com/u/34659256?v=4)](https://github.com/imhmdb "imhmdb (16 commits)")[![mariusandra](https://avatars.githubusercontent.com/u/53387?v=4)](https://github.com/mariusandra "mariusandra (15 commits)")[![haacked](https://avatars.githubusercontent.com/u/19977?v=4)](https://github.com/haacked "haacked (12 commits)")[![alexkim205](https://avatars.githubusercontent.com/u/13460330?v=4)](https://github.com/alexkim205 "alexkim205 (11 commits)")[![dustinbyrne](https://avatars.githubusercontent.com/u/8737782?v=4)](https://github.com/dustinbyrne "dustinbyrne (11 commits)")[![macobo](https://avatars.githubusercontent.com/u/148820?v=4)](https://github.com/macobo "macobo (10 commits)")[![Twixes](https://avatars.githubusercontent.com/u/4550621?v=4)](https://github.com/Twixes "Twixes (10 commits)")[![dmarticus](https://avatars.githubusercontent.com/u/4853149?v=4)](https://github.com/dmarticus "dmarticus (9 commits)")[![danielbachhuber](https://avatars.githubusercontent.com/u/36432?v=4)](https://github.com/danielbachhuber "danielbachhuber (5 commits)")[![Piccirello](https://avatars.githubusercontent.com/u/8296030?v=4)](https://github.com/Piccirello "Piccirello (4 commits)")[![cat-ph](https://avatars.githubusercontent.com/u/268578347?v=4)](https://github.com/cat-ph "cat-ph (4 commits)")[![wundo](https://avatars.githubusercontent.com/u/113942?v=4)](https://github.com/wundo "wundo (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![vdekrijger](https://avatars.githubusercontent.com/u/66254686?v=4)](https://github.com/vdekrijger "vdekrijger (2 commits)")

---

Tags

posthog

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[symfony/messenger

Helps applications send and receive messages to/from other applications or via message queues

1.1k132.9M1.5k](/packages/symfony-messenger)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[symfony/scheduler

Provides scheduling through Symfony Messenger

9114.1M115](/packages/symfony-scheduler)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

185701.7M5.6k](/packages/nesbot-carbon)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.4M289](/packages/symfony-ai-platform)

PHPackages © 2026

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