Packagist

Packagist

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Packagist to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Pull metadata, download statistics, and security advisories for PHP packages from Packagist (the Composer package registry) into the PostHog Data warehouse.

Packagist's read APIs are public, so no credentials are required. Enter the packages you want to track, one per line (or comma-separated), as vendor/package names. A bare vendor name syncs every package published by that vendor. For example:

monolog/monolog
symfony/console
yourvendor

Download statistics sync incrementally per day; the other tables sync as a full refresh.

Configuration

OptionTypeRequired
PackagestextareaYes

Linking Packagist to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Packagist
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
packages

Package metadata: one row per configured package with description, type, repository, download totals, GitHub stats, and maintainers.

Full refresh
versions

Package versions: one row per released version (and dev branch) of each configured package, with dependencies, dist/source links, and license.

Full refresh
downloads

Daily download statistics: one row per configured package per day.

Incremental, Full refreshdate
security_advisories

Security advisories affecting the configured packages, as reported by the Packagist security advisories API.

Full refresh