Dev Tools

PHP lint

PHP lint: POST {code}, get the bugs back with line numbers. Deterministic static analysis — code is never executed, no AI. Catches SQL injection (request data interpolated into query strings), the removed mysql_* API, unbalanced braces, '+' string concat, = vs == in conditions, type-juggling loose comparisons, eval/extract on request data, unused variables, leftover var_dump. Understands PHP tags, heredocs, interpolation. Max 128 KB.

Price: $0.002 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

post/api/lint/php

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/lint/php
  • Auth: API key in header X-PAYMENT

Request body

codestring required

PHP source to lint, max 128 KB

Response

Success

languagestring
syntaxobject
countsobject
verdictstring

Changes

No recorded changes to this operation across all 1 revision of this API.