Download the PHP package toolcenter/sdk without Composer
On this page you can find all versions of the php package toolcenter/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download toolcenter/sdk
More information about toolcenter/sdk
Files in toolcenter/sdk
Package sdk
Short Description Official PHP SDK for ToolCenter API - Web automation tools including screenshots, PDFs, QR codes, metadata extraction, and more.
License MIT
Homepage https://toolcenter.dev
Informations about the package sdk
ToolCenter PHP SDK
The official PHP SDK for ToolCenter - A comprehensive API for web automation tools including screenshots, PDFs, QR codes, metadata extraction, and much more.
Features
- 🖼️ Screenshots - Capture high-quality screenshots of any website
- 📄 PDF Generation - Convert web pages to PDF documents
- 🔗 QR Codes - Generate customizable QR codes
- 📊 Metadata Extraction - Extract rich metadata from websites
- 🎨 Image Processing - Watermarks, compression, and color extraction
- 🔍 Website Analysis - DNS, SSL, WHOIS, and tech stack detection
- 📱 Social Media - Open Graph images and link previews
- 🚀 Bulk Operations - Process multiple URLs efficiently
Installation
Install the SDK via Composer:
Quick Start
Authentication
Get your API key from your ToolCenter Dashboard and initialize the client:
Usage Examples
Screenshots
PDF Generation
QR Codes
Metadata Extraction
Bulk Operations
Laravel Integration
Service Provider
Create a service provider to register the ToolCenter client:
Configuration
Add your API key to config/services.php:
Usage in Laravel
API Methods
Core Methods
| Method | Description | Endpoint |
|---|---|---|
screenshot(array $options) |
Capture website screenshots | POST /api/v1/screenshot |
pdf(array $options) |
Generate PDFs from web pages | POST /api/v1/pdf |
qr(array $options) |
Generate QR codes | POST /api/v1/qr |
ogImage(array $options) |
Create Open Graph images | POST /api/v1/og-image |
metadata(array $options) |
Extract website metadata | POST /api/v1/metadata |
htmlToImage(array $options) |
Convert HTML to image | POST /api/v1/html-to-image |
linkPreview(array $options) |
Generate link previews | POST /api/v1/link-preview |
Image Processing
| Method | Description | Endpoint |
|---|---|---|
watermark(array $options) |
Add watermarks to images | POST /api/v1/watermark |
compress(array $options) |
Compress images | POST /api/v1/compress |
colors(array $options) |
Extract dominant colors | POST /api/v1/colors |
placeholder(array $options) |
Generate placeholder images | POST /api/v1/placeholder |
Website Analysis
| Method | Description | Endpoint |
|---|---|---|
dns(array $options) |
DNS lookups | POST /api/v1/dns |
ssl(array $options) |
SSL certificate info | POST /api/v1/ssl |
status(array $options) |
Website status checks | POST /api/v1/status |
techStack(array $options) |
Technology stack detection | POST /api/v1/techstack |
whois(array $options) |
WHOIS lookups | POST /api/v1/whois |
favicon(array $options) |
Extract favicons | POST /api/v1/favicon |
Utility Methods
| Method | Description | Endpoint |
|---|---|---|
usage() |
Get API usage statistics | GET /api/v1/usage |
Bulk Operations
| Method | Description | Endpoint |
|---|---|---|
bulkScreenshot(array $urls) |
Bulk screenshot capture | POST /api/v1/bulk/screenshot |
bulkPdf(array $urls) |
Bulk PDF generation | POST /api/v1/bulk/pdf |
bulkMetadata(array $urls) |
Bulk metadata extraction | POST /api/v1/bulk/metadata |
Error Handling
The SDK provides custom exception classes for different error scenarios:
Requirements
- PHP 8.1 or higher
- Guzzle HTTP client (automatically installed via Composer)
Support
- 📚 Documentation
- 💬 Support
- 🐛 Issues
- 📧 Contact
Contributing
We welcome contributions! Please feel free to submit a Pull Request.
License
This SDK is open-sourced software licensed under the MIT license.
Made with ❤️ by ToolCenter