Read a PHP or WordPress manual page
query_php_docsRead one current English manual page for a PHP symbol or a WordPress function, hook, or class. Returns the official page URL, the version line, the signature, the description, and the first official example. php.net pages are the live English HTML manual. WordPress pages are the live developer.wordpress.org reference. This is not an archive of older manuals and it does not search Laravel, Symfony, or Markdown docs. Costs 0.04 credit only when a page is returned. A missing API key, not_found, and fetch_failed are not charged. Pass the symbol, for example str_contains or wp_insert_post. Set source to php or wordpress, or omit it and a wp_ name uses WordPress. Set version, for example 8.3 or 6.7, to learn whether that release is covered by the page version line. version_applies is null when version is omitted or the page has no version line. User comments are not included. Key: https://firm.bestsmartgoods.com/signup
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A PHP or WordPress symbol, for example str_contains or wp_insert_post. A short sentence is accepted when it contains the symbol. | |
| source | No | php reads php.net. wordpress reads developer.wordpress.org. Omit it and a wp_ symbol uses WordPress, otherwise php.net. | |
| version | No | Release to check, such as 8.3 or 6.7. The page is still the current manual. version_applies says whether the page version line includes this release. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | False for not_found or fetch_failed. Those calls are not charged. | |
| url | No | The official page that was read. | |
| error | No | Present only when ok is false. | |
| query | No | ||
| title | No | ||
| source | No | ||
| symbol | No | The symbol looked up on the manual. | |
| example | No | First official example, clipped to 1500 characters. Empty when the page has none. | |
| signature | No | ||
| introduced | No | Same version line. For WordPress this is the earliest @since. | |
| description | No | Official description, clipped to 1200 characters. User comments are excluded. | |
| version_note | No | php.net version line, or the WordPress release that introduced the symbol. | |
| version_applies | No | True when the requested release is covered by the version line. Null when version was omitted or the page has no version line. | |
| credits_remaining | No | Present only after a charged, successful read. | |
| version_requested | No |