NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #791 most downloaded on Packagist
PostHog PHP Library
Latest stable
4.23.0
Last release 10 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
105 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
## 4.2.2 - 2026-04-21 * Full Changelog
## 4.2.1 - 2026-04-21 * Full Changelog
Your coding agent can read these notes before it upgrades. Set up the MCP server →
## 4.2.0 - 2026-04-06 * Full Changelog
## 4.1.1 - 2026-03-30 * Full Changelog
## 4.1.0 - 2026-03-30 * Full Changelog
## 4.0.4 - 2026-03-30 * Full Changelog
## 4.0.3 - 2026-03-19 * Full Changelog
## 4.0.2 - 2026-03-05 * Full Changelog
## 4.0.1 - 2026-02-06 * Full Changelog
Fix PHP 8.4 deprecation on Client.php constructor (Backwards Compatible)
evaluated_at properties in $feature_flag_called eventsflag filter type in local evaluation (#80)/flags endpoint instead of /decide (#76)feat: Add request id, version, id, and evaluation reason to $feature_flag_called events (#75)
Bump version to 3.4.0 (#74) 3.4.0 / 2025-04-15 ==================
feat(flags): Add getFeatureFlagPayload method (#53)
feature_flag_request_timeout_ms timeout parameter for feature flags which defaults to 3 seconds, updated from the default 10s for all other API calls.Merge pull request #19 from PostHog/handle-host
fix tests for good
check if host exists before operating on it
undefined check
fix tests
Allow hosts with protocol specified
Merge pull request #18 from PostHog/feature-flags
remove useless comment
have env var as the secondary option
bump version
bring back destruct
remove feature flags
simplify everything
Cleanup isFeatureEnabled docblock
Fix user agent undefined array key
Merge pull request #17 from PostHog/releasing-update
Note git-extras in RELEASING.md
Add test case for isFeatureEnabled with the simple flag in the mocked response
Fix: make rolloutPercentage nullable in isSimpleFlagEnabled
Merge remote-tracking branch 'upstream/master'
Fix is_simple_flag tests by mocking response
Use LONG_SCALE const
Implement isSimpleFlagEnabled
Don't set payload on get requests
(WIP) Rework feature flags based on spec https://github.com/PostHog/posthog.com/pull/1455
Extract http client functionalities
Remove extra line
Change default host to app.posthog.com
Feature/support feature flags decide API
Upgrade phplint 2.0.1 / 2021-06-11 ==================
Allow for setup via environment variables POSTHOG_API_KEY and POSTHOG_HOST
Make code adhere to PSR-4 and PSR-12
feat(flags): Add ETag support for local evaluation caching
evaluated_at properties in $feature_flag_called events (#89)fix(flags): fallback to API for multi-condition flags with static cohorts by @haacked in https://github.com/PostHog/posthog-php/pull/86
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.7.1...3.7.2
fix: don't sort condition sets with variant overrides to the top by @andyzzhao in https://github.com/PostHog/posthog-php/pull/85
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.7.0...3.7.1
chore: Add feature flags project board workflow by @haacked in https://github.com/PostHog/posthog-php/pull/79
flag filter type in local evaluation by @haacked in https://github.com/PostHog/posthog-php/pull/80Full Changelog: https://github.com/PostHog/posthog-php/compare/3.6.0...3.7.0
chore(flags): use new /flags endpoint instead of /decide by @dmarticus in https://github.com/PostHog/posthog-php/pull/76
/flags endpoint instead of /decide by @dmarticus in https://github.com/PostHog/posthog-php/pull/76Full Changelog: https://github.com/PostHog/posthog-php/compare/3.5.0...3.6.0
fix: Fix unit tests by @haacked in https://github.com/PostHog/posthog-php/pull/73
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.5...3.5.0
fix: Fix unit tests by @haacked in https://github.com/PostHog/posthog-php/pull/73
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.5...3.4.0
Fix version updating in Makefile by @danielbachhuber in https://github.com/PostHog/posthog-php/pull/72
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.4...3.3.5
Run GitHub actions on all supported PHP versions by @danielbachhuber in https://github.com/PostHog/posthog-php/pull/67
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.3...3.3.4
Fix PHP 8.4 deprecation on Client.php constructor (Backwards Compatible) by @ziming in https://github.com/PostHog/posthog-php/pull/66
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.2...3.3.3
Make the feature flag fetch optional by @markharding in https://github.com/PostHog/posthog-php/pull/65
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.1...3.3.2
fix(flags): Handle bool value matching by @neilkakkar in https://github.com/PostHog/posthog-php/pull/64
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.3.0...3.3.1
feat(flags): Locally evaluate all cohorts by @neilkakkar in https://github.com/PostHog/posthog-php/pull/63
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.2.2...3.3.0
feat(flags): Add specific timeout for feature flags by @neilkakkar in https://github.com/PostHog/posthog-php/pull/62
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.2.1...3.2.2
fix(flags): Update relative date op names by @neilkakkar in https://github.com/PostHog/posthog-php/pull/61
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.2.0...3.2.1
feat(flags): Add local props and flags to all calls by @neilkakkar in https://github.com/PostHog/posthog-php/pull/60
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.1.0...3.2.0
feat(flags): Add relative date operator and fix numeric ops by @neilkakkar in https://github.com/PostHog/posthog-php/pull/58
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.8...3.1.0
fix(flags): Safe access flags in decide v2 by @neilkakkar in https://github.com/PostHog/posthog-php/pull/55
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.7...3.0.8
PHP 8.1+ Support + Fix Errors When API/Internet Connection Down by @joelwmale in https://github.com/PostHog/posthog-php/pull/54
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.6...3.0.7
Fix typehint by @joesaunderson in https://github.com/PostHog/posthog-php/pull/52
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.5...3.0.6
Prevent "Undefined array key" warning in isFeatureEnabled() by @neilkakkar in https://github.com/PostHog/posthog-php/pull/51
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.4...3.0.5
Make timeout configurable by @EDsCODE in https://github.com/PostHog/posthog-php/pull/44
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.2...3.0.4
Make timeout configurable by @EDsCODE in https://github.com/PostHog/posthog-php/pull/44
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.2...3.0.3
Allow to configure the HttpClient maximumBackoffDuration by @eexit in https://github.com/PostHog/posthog-php/pull/33
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.1...3.0.2
Update history by @EDsCODE in https://github.com/PostHog/posthog-php/pull/37
Full Changelog: https://github.com/PostHog/posthog-php/compare/3.0.0...3.0.1
feat(libraries): add multivariate support for posthog-php by @alexkim205 in https://github.com/PostHog/posthog-php/pull/34
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.1.1...3.0.0
Group analytics: Feature flag support by @macobo in https://github.com/PostHog/posthog-php/pull/29
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.1.0...2.1.1
Add group analytics support by @macobo in https://github.com/PostHog/posthog-php/pull/26
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.6...2.1.0
Set the timeout config for HttpClient curl by @joesaunderson in https://github.com/PostHog/posthog-php/pull/24
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.5...2.0.6
Send user agent with decide request (prevent 403) by @joesaunderson in https://github.com/PostHog/posthog-php/pull/23
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.4...2.0.5
Fix/calling error handler Closure function stored in class properties by @imhmdb in https://github.com/PostHog/posthog-php/pull/20
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.2...2.0.4
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.2...2.0.3
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.2...2.0.3
Note git-extras in RELEASING.md by @Twixes in https://github.com/PostHog/posthog-php/pull/17
git-extras in RELEASING.md by @Twixes in https://github.com/PostHog/posthog-php/pull/17Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.1...2.0.2
PSR-4 tests by @mariusandra in https://github.com/PostHog/posthog-php/pull/11
Full Changelog: https://github.com/PostHog/posthog-php/compare/2.0.0...2.0.1
Removes \n from beginning of the file by @wundo in https://github.com/PostHog/posthog-php/pull/5
Full Changelog: https://github.com/PostHog/posthog-php/commits/2.0.0
One column per quarter.