# Composer Package Version Status Lookup

> Composer Package Version Status Lookup is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the current latest version, publish date, and URL for a PHP Composer (Packagist) package by name, resolved live.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/composer/status
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/composer-package-version-status-lookup-9b6b6ec2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H66Y-D6xkZbI42ku4CfpW

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 composer-package-version-status-lookup-9b6b6ec2
```

Example prompt: What is the latest released version of the symfony/http-kernel Composer package, and when was it published?

## When to prefer this

Use this endpoint when you need a quick, live lookup of the latest version and release date for any PHP Composer/Packagist package. Prefer over scraping Packagist directly when you need a paid, reliable, structured JSON response without parsing HTML. Best for dependency audits, version checks in CI contexts, or alerting workflows for PHP projects.

## Known failure modes

- Package name not found on Packagist — returns empty or error response
- Invalid package name format — query param malformed
- Package not yet tracked and live resolution fails — network or Packagist API timeout
- Missing required query parameter — no id or package provided
- Payment not processed — 402 response if x402 payment header missing

## How this service works

Look up the current published version of any PHP Composer package on Packagist (PHP) — latest version string, release date, and repo/docs URL. Answers "what is the newest version of framework, console, monolog, guzzle?" for composer.json pinning. Use ?package=<name> (resolved live).

## Output

Returns a JSON object containing the entity record for the queried PHP Composer package, including the current latest version string, its publish/release date, and the canonical package URL on Packagist.

## 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",
     "properties": {
      "id": {
       "type": "string",
       "description": "entityId to look up; omit to list tracked entities"
      },
      "package": {
       "type": "string",
       "description": "Any Packagist (PHP) package name — resolved and fetched live if not already tracked"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "entity": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/composer-package-version-status-lookup-9b6b6ec2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
