Download the PHP package converthub/php-sdk without Composer
On this page you can find all versions of the php package converthub/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download converthub/php-sdk
More information about converthub/php-sdk
Files in converthub/php-sdk
Package php-sdk
Short Description Official PHP SDK for ConvertHub API v2 - Convert files between 800+ format pairs
License MIT
Homepage https://converthub.com
Informations about the package php-sdk
ConvertHub PHP SDK
Official PHP SDK for ConvertHub API v2 - Convert files between 800+ format pairs with a simple, powerful API.
Features
- 800+ Format Conversions - Support for images, documents, audio, video, and more
- OCR Text Extraction - Extract text from images and scanned PDFs with multi-language support
- Asynchronous Processing - Non-blocking conversion with job-based workflow
- Chunked Uploads - Handle large files (up to 2GB)
- Smart Caching - Automatic caching for repeated conversions
- Secure - Industry-standard encryption and authentication
- Developer-Friendly - Clean API with detailed error handling
Requirements
- PHP 8.0 or higher
- Composer
- ConvertHub API key (Sign up here)
Installation
Install via Composer:
Quick Start
Table of Contents
- Authentication
- Account Management
- Basic Usage
- Convert a File
- Convert from URL
- Check Job Status
- Download Converted File
- OCR (Text Extraction)
- Image to Text
- PDF to Text (Scanned Documents)
- Searchable PDFs
- OCR Options
- Advanced Features
- Conversion Options
- Chunked Upload
- Webhooks
- Metadata
- Format Discovery
- Error Handling
- Examples
Authentication
Get your API key from the ConvertHub Dashboard:
Configuration Options
Account Management
Get Account Information
Retrieve your account details including credits remaining, membership plan, and file size limits:
Monitor Usage
Basic Usage
Convert a File
Convert from URL
Check Job Status
Download Converted File
OCR (Text Extraction)
The SDK provides dedicated OCR methods for extracting text from images and scanned PDFs via $client->ocr().
Supported image formats: PNG, JPG, JPEG, TIFF, TIF, BMP, GIF, WEBP
Image to Text
PDF to Text (Scanned Documents)
Searchable PDFs
OCR Options
Use the OcrOptions builder for full control over OCR parameters:
Supported languages: eng, deu, fra, spa, ita, por, nld, rus, chi_sim, chi_tra, jpn, kor, ara, hin
Advanced Features
Conversion Options
Chunked Upload for Large Files
Manual Chunked Upload
Webhooks
Metadata
Format Discovery
List All Supported Formats
Check Format Support
Error Handling
Examples
Complete Example: Document Processing Pipeline
Batch Processing Example
API Documentation
For complete API documentation, visit ConvertHub API Docs.
Testing
Run the test suite:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
- Documentation: https://converthub.com/api/docs
- Issues: GitHub Issues
- Email: [email protected]
License
This SDK is open-sourced software licensed under the MIT license.
Credits
Developed and maintained by ConvertHub.
Ready to start converting? Get your API key and begin transforming files in minutes!