PHPackages                             santran/livecoin - 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. santran/livecoin

ActiveLibrary[API Development](/categories/api)

santran/livecoin
================

Livecoin API wrapper for Laravel

2221[2 issues](https://github.com/mrsantran/livecoin/issues)PHP

Since Dec 28Pushed 8y agoCompare

[ Source](https://github.com/mrsantran/livecoin)[ Packagist](https://packagist.org/packages/santran/livecoin)[ RSS](/packages/santran-livecoin/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Livecoin API Trading
====================

[](#livecoin-api-trading)

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

### Installation

[](#installation)

`composer require santran/livecoin:dev-master`.

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

```
 'providers' => [
    Santran\Livecoin\LivecoinServiceProvider::class,
 ],
```

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

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

```
LIVECOIN_KEY={YOUR_API_KEY}
LIVECOIN_SECRET={YOUR_API_SECRET}

```

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

```
'aliases' => [
    'Livecoin' => Santran\Livecoin\Livecoin::class,
],
```

### Usage

[](#usage)

Please refer to the [Api Documentation](https://www.livecoin.net/api/common) for more info, or read the [docblocks](https://github.com/mrsantran/livecoin/blob/master/src/Client.php) !

```
$params = array(...);
```

[Public data documentation](https://www.livecoin.net/api/public)

```
Livecoin::exchangeTicker($params);
Livecoin::exchangeLastTrades($params);
Livecoin::exchangeOrderBook($params);
Livecoin::exchangeAllOrderBook($params);
Livecoin::exchangeMaxbidMinask($params);
Livecoin::exchangeRestrictions($params);
Livecoin::infoCoinInfo();
```

[Private user data documentation](https://www.livecoin.net/api/public)

```
Livecoin::exchangeTrades($params);
Livecoin::exchangeClientOrders($params);
Livecoin::exchangeOrder($params);
Livecoin::paymentBalances($params);
Livecoin::paymentBalance($params);
Livecoin::paymentHistoryTransactions($params);
Livecoin::paymentHistorySize($params);
Livecoin::exchangeCommissions();
Livecoin::exchangeCommissionCommonInfo();
```

[Open/cancel orders documentation](https://www.livecoin.net/api/orders)

```
Livecoin::exchangeBuylimit($params);
Livecoin::exchangeSelllimit($params);
Livecoin::exchangeBuymarket($params);
Livecoin::exchangeSellmarket($params);
Livecoin::exchangeCancellimit($params);
```

[Deposit and withdrawal documentation](https://www.livecoin.net/api/withdrawal)

```
Livecoin::paymentGetAddress($params);
Livecoin::paymentOutCoin($params);
Livecoin::paymentOutPayeer($params);
Livecoin::paymentOutCapitalist($params);
Livecoin::paymentOutAdvcah($params);
Livecoin::paymentOutCard($params);
Livecoin::paymentOutOkpay($params);
Livecoin::paymentOutPerfectmoney($params);
```

[Vouchers documentation](https://www.livecoin.net/api/vouchers)

```
Livecoin::paymentVoucherMake($params);
Livecoin::paymentVoucherAmount($params);
Livecoin::paymentVoucherRedeem($params);
```

### Example

[](#example)

[To retrieve information on the latest transactions for a specified currency pair.](https://www.livecoin.net/api/public#exchangelast_trades)

```
use Santran\Livecoin\Livecoin;

$data = Livecoin::exchangeLastTrades([
        'currencyPair'  => 'BTC/USD',
        'minutesOrHour' => 'true',
        'type'          => 'BUY',
    ]);

dd($data);
```

This package is provided as-is. Do with it what you want ! PR's will be looked into. I personally believe in freedom and equality, which is one of the reasons I'm in crypto. It's also the reason I'm sharing most of the reusable code I write.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

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://www.gravatar.com/avatar/05fcc8d2c99d7c53346781ea21d01e043ed1cd1597675f83e2be8bb3fa868836?d=identicon)[santran](/maintainers/santran)

---

Top Contributors

[![mrsantran](https://avatars.githubusercontent.com/u/21286108?v=4)](https://github.com/mrsantran "mrsantran (3 commits)")

### Embed Badge

![Health badge](/badges/santran-livecoin/health.svg)

```
[![Health](https://phpackages.com/badges/santran-livecoin/health.svg)](https://phpackages.com/packages/santran-livecoin)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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