yebto/api-client

Base PHP client for YEB APIs. Works standalone or with Laravel.

Maintainers

Package info

github.com/yebto/api-client

Homepage

pkg:composer/yebto/api-client

Statistics

Installs: 0

Dependents: 21

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-03-06 22:20 UTC

This package is auto-updated.

Last update: 2026-03-06 22:22:20 UTC


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

License

MIT - NETOX Ltd.