# GHSA Composer/PHP Security Advisories Brief

> GHSA Composer/PHP Security Advisories Brief is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Returns an LLM-generated digest summarizing the most severe new Composer/PHP package security advisories within a configurable time window

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-composer/brief
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ghsa-composer-php-security-advisories-brief-57658bdb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H5O1IU8mgt18myxcs5aZ-

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 ghsa-composer-php-security-advisories-brief-57658bdb
```

Example prompt: Can you give me a security brief on the most severe Composer and PHP package advisories from the past 30 days? I want an LLM-written digest of what I should be worried about.

## When to prefer this

Use this endpoint when you need a human-readable, LLM-synthesized narrative summary of PHP/Composer security advisories rather than raw GHSA data. Prefer this over the raw advisory detail endpoint when you want a concise brief highlighting the most severe issues, not individual CVE records. Best suited for security digests, automated reports, or alerting workflows targeting PHP/Composer ecosystems specifically — use the PyPI brief sibling for Python packages instead.

## Known failure modes

- No advisories in window: may return empty or minimal brief with basedOnChanges=0
- Invalid 'since' datetime format: returns 400 bad request
- LLM generation failure: falls back to template-based generation (generatedBy='template')
- Payment not provided or insufficient: 402 Payment Required
- Service downtime on Railway: 503 or timeout

## How this service works

LLM-written digest of the most severe new Composer/PHP vulnerabilities (CVEs / advisories) in the window and which packages to patch first.

## Output

Returns a JSON object containing: a 'brief' field with an LLM-written narrative summary of the most severe new Composer/PHP advisories, a 'generatedBy' field indicating whether an LLM or template produced it, and a 'basedOnChanges' integer showing how many advisories were analyzed in the window.

## 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": {
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Window start (default: last 30 days)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "brief": {
       "type": "string"
      },
      "generatedBy": {
       "enum": [
        "llm",
        "template"
       ],
       "type": "string"
      },
      "basedOnChanges": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ghsa-composer-php-security-advisories-brief-57658bdb/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)
