Download the PHP package tigusigalpa/bybit-php without Composer

On this page you can find all versions of the php package tigusigalpa/bybit-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bybit-php

# Bybit PHP SDK ### V5 API Client for PHP & Laravel [![PHP Version](https://img.shields.io/badge/PHP-7.4%20%7C%208.0%20%7C%208.1%20%7C%208.2-blue.svg)](https://php.net) [![Laravel](https://img.shields.io/badge/Laravel-8%20%7C%209%20%7C%2010%20%7C%2011%20%7C%2012%20%7C%2013-red.svg)](https://laravel.com) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![WebSocket](https://img.shields.io/badge/WebSocket-Supported-brightgreen.svg)](https://bybit-exchange.github.io/docs/v5/ws/connect) ![ByBit PHP SDK](https://i.postimg.cc/T3PpqGyn/bybit-php-banner-v2.jpg) **Language:** English | [Русский](README-ru.md) > 📖 **[Full documentation available on Wiki](https://github.com/tigusigalpa/bybit-php/wiki)** A PHP library for working with the Bybit V5 API. Supports REST and WebSockets, and works both standalone and with Laravel. [Features](#features) • [Installation](#installation) • [Quick Start](#quick-start) • [API Methods](#api-methods) • [TradFi](#tradfi) • [WebSocket](#websocket-streaming) • [Examples](#examples)

Features


Installation

Pure PHP (without Laravel)

Laravel Integration

For local monorepo setup:

  1. Add repository to composer.json:

  2. Install the package:

  3. Publish configuration:

Laravel auto-discovery регистрирует service provider и facade автоматически.


Configuration

Environment Variables

Create or update your .env file:

Configuration Options

Parameter Type Default Description
BYBIT_API_KEY string - Your Bybit API public key
BYBIT_API_SECRET string - Your Bybit API secret key
BYBIT_TESTNET boolean false Enable testnet environment
BYBIT_DEMO_TRADING boolean false Enable demo trading environment
BYBIT_REGION string global Regional endpoint (global, nl, tr, kz, ge, ae)
BYBIT_RECV_WINDOW integer 5000 Request receive window (ms)
BYBIT_SIGNATURE string hmac Signature type (hmac or rsa)
BYBIT_RSA_PRIVATE_KEY string null RSA private key (PEM format)

Quick Start

Pure PHP Usage

Laravel Usage

Using Facade:

Using Dependency Injection:


API Methods

Market Data

Order Management

Position Management

Account & Wallet

Demo Trading

Demo trading — тестирование стратегий без риска. Используется домен api-demo.bybit.com.

Laravel Demo Trading:


WebSocket Streaming

Public Streams

Pure PHP WebSocket:

Private Streams

Authenticated WebSocket for account updates:

Laravel Background Command:

Run with: php artisan bybit:listen BTCUSDT


TradFi

The BybitTradFi class provides a dedicated interface for trading traditional financial instruments — gold, silver, forex pairs, stock CFDs, and indices — all available on Bybit as linear perpetuals through the standard V5 API.

Instantiate by passing an existing BybitClient:

Predefined Symbol Lists

Market Data

Trading

Symbol Detection Helper

Note: TradFi instruments follow market hours (unlike 24/7 crypto). Outside trading sessions the API may return empty order books or stale prices. Swap fees apply when holding positions past daily market close — check getSwapFee() before sizing.


Advanced Usage

Universal Order Placement

Trading Fee Calculation


Regional Endpoints

Region Code Endpoint
🌐 Global global https://api.bybit.com
🇳🇱 Netherlands nl https://api.bybit.nl
🇹🇷 Turkey tr https://api.bybit-tr.com
🇰🇿 Kazakhstan kz https://api.bybit.kz
🇬🇪 Georgia ge https://api.bybitgeorgia.ge
🇦🇪 UAE ae https://api.bybit.ae
🧪 Testnet - https://api-testnet.bybit.com

Authentication

Signature Generation

Bybit V5 API uses HMAC-SHA256 or RSA-SHA256 for request signing:

For GET requests:

For POST requests:

HMAC-SHA256: Returns lowercase hex RSA-SHA256: Returns base64

Required Headers

Official docs: https://bybit-exchange.github.io/docs/v5/guide


Examples

Trading Bot Example


Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

MIT License

Copyright (c) 2026 Igor Sazonov


[Report Bug](https://github.com/tigusigalpa/bybit-php/issues) • [Request Feature](https://github.com/tigusigalpa/bybit-php/issues) • [Docs](https://bybit-exchange.github.io/docs/v5/guide)

All versions of bybit-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1|^8.2
guzzlehttp/guzzle Version ^7.8
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
textalk/websocket Version ^1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tigusigalpa/bybit-php contains the following files

Loading the files please wait ...