Download the PHP package enconvert/enconvert-php without Composer
On this page you can find all versions of the php package enconvert/enconvert-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enconvert/enconvert-php
More information about enconvert/enconvert-php
Files in enconvert/enconvert-php
Package enconvert-php
Short Description PHP SDK for the Enconvert file conversion API
License MIT
Homepage https://enconvert.com
Informations about the package enconvert-php
Enconvert PHP SDK
Honest eyes for your AI agent — the PHP SDK for Enconvert. PHP 8.1+.
Read any web page or file into clean Markdown, JSON, or screenshots, and get a render_quality score (0.0–1.0) on every read — so a blocked, challenge, or empty-SPA page comes back flagged with a low score and warnings, never mistaken for real content. Perceive, discover, look up, distill, ingest, and watch the web; convert 40+ file and document formats through the same key.
Wiring an agent (Claude, Cursor, Windsurf, n8n, …)? The MCP server is the native path —
npx @enconvert/mcp setup. This SDK is the programmatic REST path for everything else.
Install
Quick Start
V2 — agent-ready data ($client->v2)
The V2 namespace turns web pages into agent-ready data: render, search, extract, ingest, and monitor. All V2 endpoints require a private API key and are plan-gated — a disabled feature or exhausted monthly quota throws QuotaException (HTTP 402). $client->v2 is a public property; $client->v2() is an equivalent accessor method.
Every render carries renderQuality (0.0–1.0). A low score means the page didn't render cleanly (challenge page, cookie wall, empty shell); the content is still returned, flagged, so a bad read never quietly enters your agent's context.
Perceive — render a URL into artifacts
Discover — enumerate a site's URLs (no rendering)
Lookup — web search with optional auto-perceive
Distill — schema-driven structured extraction
Ingest — site or files to RAG-ready JSONL (always async)
Turn a whole site — or a set of uploaded documents — into chunked, RAG-ready JSONL through one pipeline.
Watch — recurring change monitoring
V2 error handling
File conversion
The same key also converts 40+ formats. Two "anything → X" endpoints auto-detect the input; the format-specific endpoints below give you a validated, typed path.
Anything to Markdown / PDF
Image Conversion
Any pair among jpeg, png, svg, heic, webp — plus PDF rasterization:
Raw bytes are also accepted, wrapped with an explicit filename (needed to resolve the input format and MIME type):
Document Conversion
Supported inputs: doc/docx, xls/xlsx, ppt/pptx, odt, ods, odp, ots, pages, numbers, html, markdown, csv, json, xml, yaml, toml. (EPUB has no dedicated document pair — use convertToPdf / convertToMarkdown.)
The SDK validates every {input}-to-{output} pair against the conversions the API actually implements and throws immediately — with the list of valid outputs for that input — instead of sending a doomed request. Introspect programmatically:
Supported conversions
| Input | Outputs |
|---|---|
| json | csv, toml, xml, yaml |
| xml | csv, json |
| yaml | json |
| csv | json, xml |
| toml | json |
| markdown | html, pdf |
| html | |
| doc, excel, ppt, odt, ods, odp, ots, pages, numbers | |
| jpeg, png, svg, heic, webp | each other (all 20 pairs) |
| jpeg |
URL to PDF / Screenshot / Markdown
Website to PDF / Screenshot (whole-site batch)
Discover every page of a website (via sitemap, or full crawl on Pro/Business plans), convert each one in the background, and receive a single ZIP. Requires a private API key with crawl access.
convertWebsiteToScreenshot works the same way and produces a ZIP of PNGs.
PDF Options & Authenticated Pages
All URL and website conversions accept HTTP Basic Auth, cookies, and custom headers for pages behind a login:
Do not combine auth with an Authorization header — the API rejects the conflict.
Job Status (async polling)
Error Handling
AuthenticationException, QuotaException, and RateLimitException all extend ApiException, which extends the base EnconvertException.
Configuration
Get an API Key
Sign up at enconvert.com to get your API key.
License
MIT