posthog/posthog-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

posthog/posthog-php

最新稳定版本:3.7.3

Composer 安装命令:

composer require posthog/posthog-php

包简介

PostHog PHP Library

关键字:

README 文档

README

Please see the main PostHog docs.

Specifically, the PHP integration details.

Features

  • ✅ Event capture and user identification
  • ✅ Feature flag local evaluation
  • Feature flag dependencies (new!) - Create conditional flags based on other flags
  • ✅ Multivariate flags and payloads
  • ✅ Group analytics
  • ✅ Comprehensive test coverage

Quick Start

  1. Copy .env.example to .env and add your PostHog credentials
  2. Run php example.php to see interactive examples of all features

Questions?

Join our Slack community.

Contributing

  1. Download PHP and Composer
  2. php composer.phar update to install dependencies
  3. bin/test to run tests (this script calls ./vendor/bin/phpunit --verbose test)

统计信息

  • 总下载量: 2.73M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 1

GitHub 信息

  • Stars: 26
  • Watchers: 13
  • Forks: 25
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04