PHPackages                             zip-fa/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. zip-fa/posthog-php

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

zip-fa/posthog-php
==================

PostHog PHP Library

02.4k↓21.4%PHPCI passing

Since Jan 8Pushed 1mo agoCompare

[ Source](https://github.com/zip-fa/posthog-php)[ Packagist](https://packagist.org/packages/zip-fa/posthog-php)[ RSS](/packages/zip-fa-posthog-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

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).

Specifically, the [PHP integration](https://posthog.com/docs/integrations/php-integration) details.

Features
--------

[](#features)

- ✅ Event capture and user identification
- ✅ Feature flags, including local evaluation, multivariate flags, payloads, and flag dependencies
- ✅ Group analytics
- ✅ Error tracking with manual exception capture and opt-in automatic PHP exception, error, and fatal shutdown capture
- ✅ Request context helpers for applying distinct IDs, session IDs, and common properties across a request
- ✅ Comprehensive test coverage

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

28

—

LowBetter than 52% of packages

Maintenance61

Regular maintenance activity

Popularity18

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor6

6 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61551308?v=4)[zip-fa](/maintainers/zip-fa)[@zip-fa](https://github.com/zip-fa)

---

Top Contributors

[![EDsCODE](https://avatars.githubusercontent.com/u/13127476?v=4)](https://github.com/EDsCODE "EDsCODE (44 commits)")[![yakkomajuri](https://avatars.githubusercontent.com/u/38760734?v=4)](https://github.com/yakkomajuri "yakkomajuri (25 commits)")[![marandaneto](https://avatars.githubusercontent.com/u/5731772?v=4)](https://github.com/marandaneto "marandaneto (24 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)")[![releaser-posthog-php[bot]](https://avatars.githubusercontent.com/in/2618603?v=4)](https://github.com/releaser-posthog-php[bot] "releaser-posthog-php[bot] (14 commits)")[![haacked](https://avatars.githubusercontent.com/u/19977?v=4)](https://github.com/haacked "haacked (11 commits)")[![alexkim205](https://avatars.githubusercontent.com/u/13460330?v=4)](https://github.com/alexkim205 "alexkim205 (11 commits)")[![Twixes](https://avatars.githubusercontent.com/u/4550621?v=4)](https://github.com/Twixes "Twixes (10 commits)")[![macobo](https://avatars.githubusercontent.com/u/148820?v=4)](https://github.com/macobo "macobo (10 commits)")[![dmarticus](https://avatars.githubusercontent.com/u/4853149?v=4)](https://github.com/dmarticus "dmarticus (9 commits)")[![dustinbyrne](https://avatars.githubusercontent.com/u/8737782?v=4)](https://github.com/dustinbyrne "dustinbyrne (8 commits)")[![danielbachhuber](https://avatars.githubusercontent.com/u/36432?v=4)](https://github.com/danielbachhuber "danielbachhuber (5 commits)")[![cat-ph](https://avatars.githubusercontent.com/u/268578347?v=4)](https://github.com/cat-ph "cat-ph (4 commits)")[![Piccirello](https://avatars.githubusercontent.com/u/8296030?v=4)](https://github.com/Piccirello "Piccirello (3 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)")[![zip-fa](https://avatars.githubusercontent.com/u/61551308?v=4)](https://github.com/zip-fa "zip-fa (2 commits)")

### Embed Badge

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

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

###  Alternatives

[aaronfrancis/flaky

A Laravel package to elegantly handle flaky operations.

41529.9k](/packages/aaronfrancis-flaky)[safran-cassiopee/php-metar-decoder

METAR weather observation decoder

5135.6k](/packages/safran-cassiopee-php-metar-decoder)[bertptrs/phpstreams

A streams library for PHP based on the Java 8 Streams API.

883.4k](/packages/bertptrs-phpstreams)

PHPackages © 2026

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