Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →A PHP application can capture a webpage by sending its URL and credentials to a hosted screenshot API. You can integrate with a provider’s Composer SDK or make an HTTP request directly; the right choice depends on your PHP version, required formats, rendering options and operational needs. Below is a practical way to choose and implement an integration, followed by a direct HTTP example using ScreenshotNeo.
What a PHP screenshot API does
A screenshot API renders a webpage on a remote service and returns an image or document to your PHP application. Your code submits a target URL and authentication details; the provider handles the browser rendering and returns the result. This avoids installing and maintaining a browser engine in your own application environment.
There are two common integration paths: install a provider’s PHP SDK with Composer, or call its HTTP API using a PHP HTTP client. SDKs can provide provider-specific request objects and helpers for saving output. Direct HTTP calls can be simpler when you want to control the request yourself or avoid a particular SDK’s dependency requirements.
Choose an integration that fits your application
Before choosing a provider or package, check the details that affect compatibility and the finished capture. Features and requirements differ by service; the examples below are documented capabilities, not a claim that every provider supports all of them.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
- PHP and dependencies: Check the provider’s current PHP minimum and package dependencies. Composer packages include
screenshotone/sdk,screenshotmachine/screenshotmachine-phpandscreenshotapi/sdk. Requirements can change, so confirm them in the package’s current documentation before installation. - Authentication: Know how the service expects credentials. Documented examples include access and secret keys, a customer key with an optional secret phrase, or an API key sent in a request header.
- Output: Confirm the formats you need, such as PNG, JPEG, WebP or PDF, and whether the API returns bytes, a URL or another response type.
- Rendering controls: Check whether the provider supports full-page capture, viewport sizing, delays, geolocation, custom CSS, selectors or other controls your page needs.
- Workload and operations: If you capture many pages, look for batch support and current limits. Compare published pricing, reliability information and usage limits directly; the documentation cited here does not establish a neutral ranking or consistent cross-provider comparison of those factors.
Call ScreenshotNeo from PHP with a direct HTTP request
For a minimal integration, make an HTTP GET request with PHP’s cURL extension. This example requests a WebP capture of a URL, saves the response body as shot.webp, and checks both transport and HTTP errors. Replace the target URL and supply your ScreenshotNeo access key from your server’s environment.
<?php
$accessKey = getenv('SCREENSHOTNEO_API_KEY');
if (!$accessKey) {
throw new RuntimeException('Set SCREENSHOTNEO_API_KEY before running this script.');
}
$targetUrl = 'https://stripe.com';
$endpoint = 'https://api.screenshotneo.com/v1/shot';
$query = http_build_query([
'access_key' => $accessKey,
'url' => $targetUrl,
]);
$ch = curl_init($endpoint . '?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 90,
]);
$body = curl_exec($ch);
if ($body === false) {
$error = curl_error($ch);
curl_close($ch);
throw new RuntimeException('Screenshot request failed: ' . $error);
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status < 200 || $status >= 300) {
throw new RuntimeException('Screenshot API returned HTTP ' . $status . ': ' . $body);
}
if (file_put_contents(__DIR__ . '/shot.webp', $body) === false) {
throw new RuntimeException('Could not write shot.webp');
}
Keep the API key on the server, not in browser-side JavaScript, HTML or a public repository. The example treats a non-2xx response as an error; production code should also log the status and a safe diagnostic without logging secrets. For request parameters and the API’s available controls, see the ScreenshotNeo API documentation.
Alternative PHP clients
With an SDK, follow the provider’s current installation and authentication instructions rather than assuming that package names, APIs or PHP requirements are interchangeable. ScreenshotOne’s repository documents installing its SDK with Composer, constructing a client from credentials, configuring a URL and capture options, then generating a request URL or downloading image bytes to a file. ScreenshotMachine’s PHP example configures a customer key and target URL, generates an API URL and writes an image or PDF; its documentation notes using a secret phrase for calls from publicly available websites. ScreenshotAPI’s package page describes setting an API key in an environment variable, sending it in an x-api-key header and saving the result to a local path. Its listing specifies PHP 8.1+ and Composer; verify that requirement against the current package documentation before relying on it.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Understand capture options and output formats
The requested result depends on provider-specific parameters. A basic URL capture may be enough for a static page, but pages that load content dynamically or require a particular rendering context need more configuration. The REST documentation reviewed for this topic describes PNG, JPEG, WebP and PDF outputs, plus GET and POST single-capture endpoints and a POST batch endpoint. It describes advanced options as POST-only; confirm endpoint behavior and authentication in the current API documentation before building against it.
- Viewport or full page: Use a viewport capture for the visible browser area; request full-page capture when the full document is needed. Confirm the provider’s behavior on pages with lazy-loaded content.
- Timing: A page may need time to render or fetch data. Check for provider options such as a delay or selector-based wait rather than assuming a fixed delay works for every target.
- Geography and rendering: If a page varies by location, check for a geolocation option. For visual adjustments, confirm support for custom CSS or other rendering controls.
- PDF: If the output is a document rather than an image, verify that the selected API supports PDF and exposes any required page or layout settings.
- Batching: For multiple targets, check whether batch capture is available, its request format and current limits. A batch endpoint is not necessarily identical to issuing many individual requests.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server for developers. Its API accepts one GET request with a URL and returns a PNG, JPEG, WebP or PDF. Here is the same basic PHP cURL pattern pointed at a target site; the API key stays on your server:
<?php
$accessKey = getenv('SCREENSHOTNEO_API_KEY');
$targetUrl = 'https://stripe.com';
$query = http_build_query([
'access_key' => $accessKey,
'url' => $targetUrl,
]);
$ch = curl_init('https://api.screenshotneo.com/v1/shot?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 90,
]);
$shot = curl_exec($ch);
if ($shot === false) {
throw new RuntimeException(curl_error($ch));
}
file_put_contents(__DIR__ . '/shot.webp', $shot);
curl_close($ch);
See the ScreenshotNeo documentation for request parameters and response details. Before capture, it accepts the cookie or consent banner as a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and responses include X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info and capture_pdf tools for Claude, Cursor and other MCP clients. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Troubleshoot common integration failures
The request fails before an HTTP response
Check that PHP’s cURL extension is available, the server can make outbound HTTPS requests, the endpoint is correct and the timeout is sufficient for the target page. In the PHP example, a cURL failure is different from an API HTTP error, so inspect the cURL error separately from the response status.
The API returns an authentication error
Confirm that the key is present in the server environment and that you are using the credential type and transmission method required by that provider. Some services use query parameters, while others document a header; do not assume credentials are interchangeable between vendors.
The saved file is not a usable screenshot
Do not save an error response as though it were an image. Check the HTTP status and response details before writing bytes, and verify that the requested output format matches the filename and API options. A successful network request alone does not prove that the target page rendered as intended.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
The capture is blank or missing page content
The target may depend on client-side rendering, delayed content, or a required geographic context. Check the provider’s documented wait, geolocation and full-page options. If the service reports a page verdict, use it to distinguish a rendered page from a blank page or a bot check rather than treating every returned response as a valid capture.
A Composer package will not install
Compare your PHP version and installed dependencies with the package’s current requirements. Package metadata and SDK interfaces change, so consult the relevant package documentation rather than copying an older installation command or assuming a requirement remains current.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePerformance, reliability and cost decisions
A hosted capture adds a network request and a remote rendering step to your application. Set a timeout that fits the page and your own request budget; for user-facing workflows, consider whether capture should run asynchronously rather than holding a page response open. For larger jobs, check whether the provider offers batch or asynchronous workflows and what limits apply. The sources reviewed here do not provide a consistent basis for comparing latency, uptime, pricing or reliability across providers, so verify those operational terms directly before selecting a service.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Also decide how your application will handle failed captures, retries and output storage. Retrying every error without limits can multiply work; distinguish transient transport failures from invalid credentials, rejected requests and pages that do not render. Store credentials in server-side configuration, and avoid exposing them in generated screenshot URLs if those URLs could be logged or shared.
Implementation checklist
- Choose a provider and confirm current PHP, Composer and dependency requirements.
- Decide whether a Composer SDK or a direct HTTP request best fits your application.
- Store the API credential server-side and confirm the provider’s required authentication method.
- Test with a target page you control; validate the HTTP status, response type and saved output.
- Add only the options you need, such as full-page capture, PDF, geolocation, delays or batching.
- Set timeouts and error handling to match your application, and check current service limits and pricing before production use.
Frequently Asked Questions
Can PHP capture a webpage without installing a browser locally?
Yes. A hosted screenshot API renders the page remotely; your PHP application sends a request and handles the returned output.
Should I use a Composer SDK or call the API directly?
Use an SDK when its helpers suit your application and its current PHP requirements fit your environment. Direct HTTP is an alternative when you want to manage the request yourself.
Can a screenshot API return a PDF from a PHP request?
Some do. PDF support and its configuration are provider-specific, so confirm the output format and endpoint options in the service’s current documentation.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

