From fd07947ff2f01cee7de35cfdb95d0950602da5ec Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Fri, 12 Jun 2026 11:40:55 +0200 Subject: [PATCH 1/2] docs: centralize SDK examples in official docs --- README.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e6f957b..938abaf 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,12 @@ # PostHog PHP -[![PHP Version](https://img.shields.io/packagist/php-v/posthog/posthog-php?logo=php)](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. +SDK usage examples and code snippets live in the official documentation so they stay up to date. -## Features +## Documentation -- ✅ 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 +- [PHP library docs](https://posthog.com/docs/libraries/php) ## Questions? From 62d3a388eefa8a0c5fdab84552bf6d5af4c96e3e Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Fri, 12 Jun 2026 14:13:54 +0200 Subject: [PATCH 2/2] docs: address README review feedback --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 938abaf..036d06a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # PostHog PHP +[![PHP Version](https://img.shields.io/packagist/php-v/posthog/posthog-php?logo=php)](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. @@ -7,6 +10,7 @@ SDK usage examples and code snippets live in the official documentation so they ## Documentation - [PHP library docs](https://posthog.com/docs/libraries/php) +- [Laravel integration docs](https://posthog.com/docs/libraries/laravel) ## Questions?