A short "hello world" that authenticates with the Cryptohopper API and prints your account info plus the BTC/USDT price.
export CRYPTOHOPPER_TOKEN=your-40-char-bearer
composer install
php hello.php- How to construct a
Clientwith named-argument syntax (PHP 8.0+) - One authenticated call:
$ch->user->get() - One market-data call:
$ch->exchange->ticker(exchange: ..., market: ...) - Typed error handling via
CryptohopperException
cryptohopper.com developer dashboard → Create OAuth app → drive the consent flow once. See oauth/php/ for a runnable OAuth example, or use the cryptohopper CLI (cryptohopper login) which handles the flow for you.
Just one — cryptohopper/sdk. Requires PHP 8.1+.