yebto/api-client
Composer 安装命令:
composer require yebto/api-client
包简介
Base PHP client for YEB APIs. Works standalone or with Laravel.
README 文档
README
Base PHP client for all YEB API SDKs. This package provides the shared HTTP layer, configuration, and error handling used by individual API packages.
Installation
composer require yebto/api-client
You typically don't install this package directly. It's automatically included as a dependency of individual API packages like
yebto/currency-api,yebto/text-api, etc.
Available API Packages
| Package | Description |
|---|---|
| yebto/currency-api | Exchange rates, conversion, platform fees |
| yebto/text-api | Translate, rephrase, correct, summarize |
| yebto/short-links-api | URL shortening and analytics |
| yebto/qrcode-api | QR code generation and experiences |
| yebto/screenshot-api | Website screenshots, PDF, video capture |
| yebto/watermark-api | Image, PDF, video watermarking |
| yebto/bot-detect-api | Bot and crawler detection |
| yebto/mail-checker-api | Email validation |
| yebto/device-analyzer-api | User-agent device detection |
| yebto/domain-api | Domain analysis and niche detection |
| yebto/vat-api | VAT calculation |
| yebto/pdf-builder-api | PDF generation from prompt or image |
| yebto/invoicing-api | Invoice, receipt, proforma generation |
| yebto/place-api | Location search by name or coordinates |
| yebto/html-generator-api | HTML block and document generation |
| yebto/article-generator-api | AI article generation |
| yebto/horoscope-api | Daily, weekly, monthly horoscopes |
| yebto/numerology-api | Numerology readings and predictions |
| yebto/astrology-api | Natal charts, transits, synastry |
Error Handling
All API packages throw typed exceptions:
use Yebto\ApiClient\Exceptions\ApiException; use Yebto\ApiClient\Exceptions\AuthenticationException; use Yebto\ApiClient\Exceptions\RateLimitException; try { $result = $api->someMethod(); } catch (AuthenticationException $e) { // Missing or invalid API key (401) } catch (RateLimitException $e) { // Too many requests (429) } catch (ApiException $e) { $e->getMessage(); // Error message $e->getHttpCode(); // HTTP status code $e->getResponseBody(); // Full response array }
Free API Access
Register at yeb.to with Google OAuth to get a free API key with 1000+ requests included.
Support
- API Directory: yeb.to/api
- Email: support@yeb.to
- Issues: GitHub Issues
License
MIT - NETOX Ltd.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 21
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-06