# Packagist PHP Package Health Check

> Packagist PHP Package Health Check is a paid API for AI agents from package-registries.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns health signals for a PHP Composer package on Packagist: release age, download counts, license, abandonment status, and GitHub metrics.

## Facts

- Endpoint: GET https://package-registries.x402tookit.com/packagist-health?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/packagist-php-package-health-check-a1096970
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oIfQye_QmwEvh4e4P9f72

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability packagist-php-package-health-check-a1096970
```

Example prompt: Can you check the health of the guzzlehttp/guzzle package on Packagist — I want to know if it's still actively maintained, what the latest stable version is, how many downloads it has, and whether it's abandoned?

## When to prefer this

Use this endpoint when you need a quick, structured health assessment of a specific PHP Composer package from Packagist, including abandonment signals, download velocity, license, and GitHub activity. Prefer this over manual Packagist browsing when you need machine-readable verdicts for dependency auditing, CI checks, or automated project health reports. Choose sibling endpoints for npm, RubyGems, NuGet, or other ecosystems.

## Known failure modes

- Package not found on Packagist — returns null or error for unknown vendor/package slugs
- Invalid package name format (must be vendor/package) — query param validation failure
- Packagist API unavailable — upstream timeout or error
- GitHub signals missing if repository is not hosted on GitHub
- Payment failure (x402) — 402 response if USDC payment not provided

## How this service works

Health of a PHP Composer package on Packagist: latest stable release age, downloads, license, abandonment and GitHub signals.

## Output

Returns a structured health report for the requested Packagist package including: package name, latest stable version and its publish date, days since latest release, total/monthly/daily download counts, license(s), abandonment flag, number of maintainers, GitHub stars, GitHub open issues, number of dependents, a human-readable summary, a verdict string, and optionally a replacement package recommendation and disclaimer. Also includes the Packagist source URL and the timestamp of the data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "vendor/package, e.g. laravel/framework"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "favers": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "license": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "abandoned": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "downloads": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "daily": {
         "type": [
          "null",
          "number"
         ]
        },
        "total": {
         "type": [
          "null",
          "number"
         ]
        },
        "monthly": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "dependents": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/packagist-php-package-health-check-a1096970/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from package-registries.x402tookit.com](https://www.zero.xyz/host/package-registries.x402tookit.com/llms.txt)
