PHPackages                             abe27/bitkub-service - 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. [API Development](/categories/api)
4. /
5. abe27/bitkub-service

ActiveLibrary[API Development](/categories/api)

abe27/bitkub-service
====================

A Laravel package for integrating with the Bitkub Cryptocurrency Exchange API

v0.0.1.5(10mo ago)027MITPHPPHP ^8.3

Since May 7Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/abe27/bitkub-service)[ Packagist](https://packagist.org/packages/abe27/bitkub-service)[ Docs](https://github.com/abe27/bitkub-service)[ RSS](/packages/abe27-bitkub-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

Laravel Bitkub Service Package
==============================

[](#laravel-bitkub-service-package)

A Laravel package for integrating with the Bitkub Cryptocurrency Exchange API.

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

[](#installation)

You can install the package via composer:

```
composer require abe27/bitkub-service
```

Publish Configuration
---------------------

[](#publish-configuration)

After installing the package, publish the configuration file:

```
php artisan vendor:publish --tag=bitkub-config
```

This will create a `config/bitkub.php` configuration file in your project.

Configuration
-------------

[](#configuration)

Add your Bitkub API credentials to your `.env` file:

```
BITKUB_API_KEY=your-api-key
BITKUB_API_SECRET=your-api-secret
BITKUB_ENDPOINT=https://api.bitkub.com

```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
// Get market status
$status = Bitkub::status();

// Get server time
$serverTime = Bitkub::serverTime();

// Get market symbols
$symbols = Bitkub::symbols();

// Get ticker information for all symbols
$ticker = Bitkub::ticker();

// Get ticker information for a specific symbol
$btcTicker = Bitkub::ticker('BTC');
```

### Authentication Required API

[](#authentication-required-api)

For endpoints that require authentication, you need to set up your API key and secret in the configuration file.

```
// Get user balances
$balances = Bitkub::balances();

// Create a buy order
$buyOrder = Bitkub::createBuyOrder('BTC', 0.001, 500000, 'limit');

// Create a sell order
$sellOrder = Bitkub::createSellOrder('BTC', 0.001, 550000, 'limit');

// Cancel an order
$cancelOrder = Bitkub::cancelOrder('BTC', 12345, 'buy');
```

Available Methods
-----------------

[](#available-methods)

### Public API Endpoints

[](#public-api-endpoints)

- `status()` - Get server status
- `serverTime()` - Get server time
- `symbols()` - Get market symbols
- `ticker($symbol = null)` - Get ticker information

### Private API Endpoints

[](#private-api-endpoints)

- `balances()` - Get user balances
- `createBuyOrder($symbol, $amount, $rate, $type = 'limit')` - Create a buy order
- `createSellOrder($symbol, $amount, $rate, $type = 'limit')` - Create a sell order
- `cancelOrder($symbol, $id, $side)` - Cancel an order

Error Handling
--------------

[](#error-handling)

All API errors will throw a `BitkubException` which can be caught and handled appropriately:

```
use Abe27\Bitkub\Exceptions\BitkubException;

try {
    $balances = Bitkub::balances();
} catch (BitkubException $e) {
    // Handle Bitkub API error
    $message = $e->getMessage();
    $errorCode = $e->getErrorCode();

    // Log or handle the error
}
```

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance53

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

5

Last Release

328d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c9e71a489cc65e0016511e1030c6936790bae25bf227539865ef4d5cb7396da?d=identicon)[abe27](/maintainers/abe27)

---

Top Contributors

[![abe27](https://avatars.githubusercontent.com/u/10987673?v=4)](https://github.com/abe27 "abe27 (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/abe27-bitkub-service/health.svg)

```
[![Health](https://phpackages.com/badges/abe27-bitkub-service/health.svg)](https://phpackages.com/packages/abe27-bitkub-service)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
