PHPackages                             cryptomkt/cryptomkt-curl-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. cryptomkt/cryptomkt-curl-php

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

cryptomkt/cryptomkt-curl-php
============================

CryptoMarket Curl PHP makes it easy integrate with CryptoMarket APIs.

0.1.1(7y ago)0313MITPHPPHP &gt;=5.3

Since Jul 27Pushed 6y ago2 watchersCompare

[ Source](https://github.com/cryptomkt/cryptomkt-curl-php)[ Packagist](https://packagist.org/packages/cryptomkt/cryptomkt-curl-php)[ Docs](https://github.com/cryptomkt/cryptomkt-curl-php)[ RSS](/packages/cryptomkt-cryptomkt-curl-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

CryptoMarket API v1 PHP Client
==============================

[](#cryptomarket-api-v1-php-client)

[![N|CryptoMarket](https://camo.githubusercontent.com/5663b05b23c8212823aa05deb6700b4ee8593a7814484a4f0f4d844dcd4838f3/68747470733a2f2f7374617469632e63727970746f6d6b742e636f6d2f7374617469632f676c6f62616c2f6173736574732f696d616765732f636d6b742d626c75652d666f6f7465722e706e67)](https://www.cryptomkt.com/)

PHP library [CryptoMarket API v1](https://developers.cryptomkt.com) to integrate CryptoMarket API into your PHP project.

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

[](#installation)

This library could be installed using Composer. Please read the [Composer Documentation](https://getcomposer.org/doc/01-basic-usage.md).

```
"require": {
    "cryptomkt/cryptomkt-curl-php": "dev-master"
}
```

Authentication
--------------

[](#authentication)

### API Key

[](#api-key)

Use an API key and secret to access your own Crypto Market account.

```
use Cryptomkt\Client;
use Cryptomkt\Configuration;

$configuration = Configuration::apiKey($apiKey, $apiSecret);
$client = Client::create($configuration);
```

### Warnings

[](#warnings)

This library will log all warnings to a standard PSR-3 logger if one is configured.

```
use Cryptomkt\Client;
use Cryptomkt\Configuration;

$configuration = Configuration::apiKey($apiKey, $apiSecret);
$configuration->setLogger($logger);
$client = Client::create($configuration);
```

### Responses

[](#responses)

Each resource object has a `getRawData()` method which you can use to access any field that are not mapped to the object properties.

```
$data = $markets->getRawData();
```

Raw data from the last HTTP response is also available on the client object.

```
$data = $client->decodeLastResponse();
```

Usage
-----

[](#usage)

For more references, go to the [official documentation](https://developers.cryptomkt.com/).

### Market Data

[](#market-data)

**List markets**

```
$markets = $client->getMarkets();
```

**Get ticker**

```
$arguments = array('market' => 'ETHARS');
$ticker = $client->getTicker($arguments);
```

**Get trades**

```
$arguments = array('market' => 'ETHCLP','start' => '2017-05-20', 'end' => '2017-05-30', 'page' => 1);
$trades = $client->getTrades($arguments);
```

### Orders

[](#orders)

**Get orders**

```
$arguments = array('market' => 'ETHARS','type' => 'buy', 'page' => 1);
$orders = $client->getOrders($arguments);
```

**Get order**

```
$arguments = array('id' => 'M107435');
$order = $client->getOrder($arguments);
```

**Get active orders**

```
$arguments = array('market' => 'ETHCLP', 'page' => 0);
$active_orders = $client->getActiveOrders($arguments);
```

**Get executed orders**

```
$arguments = array('market' => 'ETHCLP', 'page' => 0);
var_dump($client->getExecutedOrders($arguments));
```

**Create order**

```
$arguments = array(
        'amount' => '0.3',
        'market' => 'ethclp',
        'price' => '200000',
        'type' => 'sell'
    );
$response = $client->createOrder($arguments);
```

**Cancel order**

```
$arguments = array('id' => 'M107441');
$response = $client->cancelOrder($arguments);
```

### Balance

[](#balance)

**Get balance**

```
$response = $client->getBalance();
```

**Create pay order**

```
$arguments = array(
    'to_receive' => '3000',
    'to_receive_currency' => 'CLP',
    'payment_receiver' => 'receiver@email.com',
    'external_id' => '123456CM',
    'callback_url' => '',
    'error_url' => '',
    'success_url' => '',
    'refund_email' => 'refund@email.com',
    'language' => ['es','en','pt']
);

$response = $client->createPayOrder($arguments);
```

### Pay orders

[](#pay-orders)

**Get pay order**

```
$arguments = array('id' => 'P13565');
$response = $client->getPayOrder($arguments);
```

**Get pay orders**

```
$arguments = array('start_date' => '1/05/2018','end_date' => '31/05/2018');
$response = $client->getPayOrders($arguments);
```

Contributing and testing
------------------------

[](#contributing-and-testing)

The test suite is built using PHPUnit. Run the suite of unit tests by running the `phpunit` command.

```
phpunit

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.2% 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 ~21 days

Total

2

Last Release

2831d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e86f45818e0f203914b3b82cde103821891bc616e95c11aac47e5a52433f76e?d=identicon)[cryptomarket](/maintainers/cryptomarket)

---

Top Contributors

[![zachborboa](https://avatars.githubusercontent.com/u/1083146?v=4)](https://github.com/zachborboa "zachborboa (962 commits)")[![zborboa-g](https://avatars.githubusercontent.com/u/6154360?v=4)](https://github.com/zborboa-g "zborboa-g (16 commits)")[![mariopando](https://avatars.githubusercontent.com/u/9327808?v=4)](https://github.com/mariopando "mariopando (5 commits)")[![thebeline](https://avatars.githubusercontent.com/u/130580?v=4)](https://github.com/thebeline "thebeline (3 commits)")[![Gormartsen](https://avatars.githubusercontent.com/u/5018896?v=4)](https://github.com/Gormartsen "Gormartsen (3 commits)")[![zuoRambo](https://avatars.githubusercontent.com/u/4715122?v=4)](https://github.com/zuoRambo "zuoRambo (3 commits)")[![maxvodo](https://avatars.githubusercontent.com/u/5998258?v=4)](https://github.com/maxvodo "maxvodo (3 commits)")[![mydansun](https://avatars.githubusercontent.com/u/8871143?v=4)](https://github.com/mydansun "mydansun (3 commits)")[![case](https://avatars.githubusercontent.com/u/20105?v=4)](https://github.com/case "case (3 commits)")[![tixlegeek](https://avatars.githubusercontent.com/u/5763595?v=4)](https://github.com/tixlegeek "tixlegeek (2 commits)")[![giansalex](https://avatars.githubusercontent.com/u/14926587?v=4)](https://github.com/giansalex "giansalex (2 commits)")[![failpunk](https://avatars.githubusercontent.com/u/1109167?v=4)](https://github.com/failpunk "failpunk (2 commits)")[![rockerBOO](https://avatars.githubusercontent.com/u/15027?v=4)](https://github.com/rockerBOO "rockerBOO (2 commits)")[![Oxicode](https://avatars.githubusercontent.com/u/1320709?v=4)](https://github.com/Oxicode "Oxicode (2 commits)")[![petewatts](https://avatars.githubusercontent.com/u/5468882?v=4)](https://github.com/petewatts "petewatts (2 commits)")[![willianpts](https://avatars.githubusercontent.com/u/553533?v=4)](https://github.com/willianpts "willianpts (2 commits)")[![woxcab](https://avatars.githubusercontent.com/u/16160665?v=4)](https://github.com/woxcab "woxcab (2 commits)")[![VolCh](https://avatars.githubusercontent.com/u/396345?v=4)](https://github.com/VolCh "VolCh (2 commits)")[![user52](https://avatars.githubusercontent.com/u/3287452?v=4)](https://github.com/user52 "user52 (2 commits)")[![Pezmc](https://avatars.githubusercontent.com/u/507155?v=4)](https://github.com/Pezmc "Pezmc (1 commits)")

---

Tags

phpcurllumenclasspaymentbitcoinethereumStellaraltcoinscryptocurrenciescryptomarketcryptocompra

### Embed Badge

![Health badge](/badges/cryptomkt-cryptomkt-curl-php/health.svg)

```
[![Health](https://phpackages.com/badges/cryptomkt-cryptomkt-curl-php/health.svg)](https://phpackages.com/packages/cryptomkt-cryptomkt-curl-php)
```

###  Alternatives

[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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