PHPackages                             sadenergizer/laravel-okex - 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. sadenergizer/laravel-okex

ActiveLibrary[API Development](/categories/api)

sadenergizer/laravel-okex
=========================

Okex API wrapper for Laravel

13441PHP

Since Jul 4Pushed 7y agoCompare

[ Source](https://github.com/SadEnergizer/laravel-okex)[ Packagist](https://packagist.org/packages/sadenergizer/laravel-okex)[ RSS](/packages/sadenergizer-laravel-okex/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Okex
============

[](#laravel-okex)

Start trading on Okex right away using your favorite PHP framework.

### Installation

[](#installation)

`composer require sadenergizer/laravel-okex`.

Add the service provider to your `config/app.php`:

```
'providers' => [
   Sadenergizer\Okex\OkexServiceProvider::class,
],

```

...run `php artisan vendor:publish` to copy the config file.

Edit the `config/okex.php` or add Okex api and secret in your `.env` file

```
OKEX_KEY={YOUR_API_KEY}
OKEX_SECRET={YOUR_API_SECRET}

```

Add the alias to your `config/app.php`:

```
'aliases' => [
    'Okex' => Sadenergizer\Okex\Okex::class,
],

```

### Usage

[](#usage)

Please refer to the [Api Documentation](https://github.com/okcoin-okex/API-docs-OKEx.com/) for more info!

```
use Sadenergizer\Okex\Okex;

// public API methods
Okex::getTicker($symbol);
Okex::getDepth($symbol, $size);
Okex::getTrades($symbol, $since = null);
Okex::getCandlestickData($symbol, $type, $size, $since);

// private API methods
Okex::getUserInfo();
Okex::placeOrder($symbol, $type, $price, $amount);
Okex::getOrder($symbol, $id);
Okex::cancelOrder($symbol, $id);
Okex::getWalletInfo();

```

This package is provided as-is. Do with it what you want!

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/92259413?v=4)[Mirror4u](/maintainers/Mirror4u)[@mirror4u](https://github.com/mirror4u)

---

Top Contributors

[![SadEnergizer](https://avatars.githubusercontent.com/u/22399742?v=4)](https://github.com/SadEnergizer "SadEnergizer (7 commits)")

### Embed Badge

![Health badge](/badges/sadenergizer-laravel-okex/health.svg)

```
[![Health](https://phpackages.com/badges/sadenergizer-laravel-okex/health.svg)](https://phpackages.com/packages/sadenergizer-laravel-okex)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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