PHPackages                             bybit-exchange/bybit-connector-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bybit-exchange/bybit-connector-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bybit-exchange/bybit-connector-php
==================================

Official Bybit V5 REST API connector for PHP — typed method signatures, HMAC-SHA256 signing, typed exception hierarchy, Guzzle-based transport.

0.1.0(yesterday)01↑2900%MITPHPPHP &gt;=8.1CI passing

Since Jul 24Pushed yesterdayCompare

[ Source](https://github.com/bybit-exchange/bybit.php.api)[ Packagist](https://packagist.org/packages/bybit-exchange/bybit-connector-php)[ Docs](https://github.com/bybit-exchange/bybit.php.api)[ RSS](/packages/bybit-exchange-bybit-connector-php/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

bybit-connector-php
===================

[](#bybit-connector-php)

[![Packagist version](https://camo.githubusercontent.com/3c090c68e2850b59d6ff2afcfd8c842c5c9757e32642c33fe3499881ab58351d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62796269742d65786368616e67652f62796269742d636f6e6e6563746f722d7068702e737667)](https://packagist.org/packages/bybit-exchange/bybit-connector-php)[![PHP ≥ 8.1](https://camo.githubusercontent.com/b8a573d761f1cc3b6d29b0e482fd7e83caca3ee92113370c882313b5c9710ff7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d254532253839254135382e312d627269676874677265656e2e737667)](https://www.php.net)[![PHPStan level 6](https://camo.githubusercontent.com/12698c6a2ee3c1b1d42fa6692f73e34104154f0986e9bac3bcacbcbd296ddc2f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230362d3737376262342e737667)](https://phpstan.org)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](./LICENSE)[![CI](https://github.com/bybit-exchange/bybit.php.api/actions/workflows/ci.yml/badge.svg)](https://github.com/bybit-exchange/bybit.php.api/actions/workflows/ci.yml)

Official lightweight PHP connector for the [Bybit V5 REST API](https://bybit-exchange.github.io/docs/v5/intro).

`bybit-connector-php` wraps the Bybit V5 HTTP endpoints as a set of typed PHP methods with explicit required arguments plus an `array $options = []` catch-all for optional parameters. Its goal is the same as [`pybit`](https://github.com/bybit-exchange/pybit) on the Python side and [`bybit-connector-ruby`](https://github.com/bybit-exchange/bybit.ruby.api) on the Ruby side: an easy-to-use, high-performance connector with a small dependency footprint.

Prerequisites
-------------

[](#prerequisites)

Before you write any code you need a Bybit API key. Two accounts to know about:

- **Testnet** — [testnet.bybit.com](https://testnet.bybit.com) → sign up → API Management → *Create New Key*. This is where you should point every new integration until you're confident about behavior. Testnet balances are virtual; nothing you do here touches real funds.
- **Mainnet** — [bybit.com](https://www.bybit.com) → API Management. Real money. Enable only the permissions you actually need (spot / derivatives / withdrawals) and prefer IP-restricted keys.

Testnet and mainnet keys are **separate** — an API key issued on one won't work against the other. The SDK selects the environment via the `testnet: true|false` constructor argument on `Configuration` (or an explicit `baseUrl:` override).

Installation
------------

[](#installation)

PHP &gt;= 8.1 is required (PHP 8.3.x recommended). Composer 2.x.

```
composer require bybit-exchange/bybit-connector-php

```

Quick Start
-----------

[](#quick-start)

```
