PostHog 1.0.0-beta
Prefix ReservedSee the version list below for details.
dotnet add package PostHog --version 1.0.0-beta
NuGet\Install-Package PostHog -Version 1.0.0-beta
<PackageReference Include="PostHog" Version="1.0.0-beta" />
paket add PostHog --version 1.0.0-beta
#r "nuget: PostHog, 1.0.0-beta"
// Install PostHog as a Cake Addin #addin nuget:?package=PostHog&version=1.0.0-beta&prerelease // Install PostHog as a Cake Tool #tool nuget:?package=PostHog&version=1.0.0-beta&prerelease
PostHog .NET SDK
This is a client SDK for the PostHog API written in C#. This is the core implementation of PostHog.
[!WARNING]
This package is currently in a pre-release stage. We're making it available publicly to solicit feedback. While we always strive to maintain a high level of quality, use this package at your own risk. There will be many breaking changes until we reach a stable release.
Goals
The goal of this package is to be usable in multiple .NET environments. At this moment, we are far short of that goal. We only support ASP.NET Core via PostHog.AspNetCore.
Usage
To use this package, you need to create an instance of PostHogClient
and call the appropriate methods. Here's an example:
using PostHog;
var client = new PostHogClient(new PostHogOptions { ProjectApiKey = "YOUR_PROJECT_API_KEY" });
await client.CaptureAsync("user-123", "Test Event");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- System.Text.Json (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PostHog:
Package | Downloads |
---|---|
PostHog.AspNetCore
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta.12 | 0 | 2/22/2025 |
1.0.0-beta.11 | 512 | 2/17/2025 |
1.0.0-beta.10 | 370 | 2/15/2025 |
1.0.0-beta.9 | 49 | 2/14/2025 |
1.0.0-beta.8 | 93 | 2/14/2025 |
1.0.0-beta.7 | 282 | 2/14/2025 |
1.0.0-beta.6 | 41 | 2/13/2025 |
1.0.0-beta.5 | 664 | 2/11/2025 |
1.0.0-beta.4 | 60 | 2/10/2025 |
1.0.0-beta.3 | 586 | 2/6/2025 |
1.0.0-beta.2 | 28 | 2/6/2025 |
1.0.0-beta | 56 | 2/5/2025 |
1.0.0-alpha.2 | 46 | 2/3/2025 |
1.0.0-alpha | 62 | 2/2/2025 |