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

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

cryptomkt/cryptomkt-guzzle-php
==============================

Crypto Market PHP Client

0.1(7y ago)142[1 issues](https://github.com/cryptomkt/cryptomkt-guzzle-php/issues)MITPHPPHP &gt;=5.6.0

Since Jul 25Pushed 7y ago2 watchersCompare

[ Source](https://github.com/cryptomkt/cryptomkt-guzzle-php)[ Packagist](https://packagist.org/packages/cryptomkt/cryptomkt-guzzle-php)[ Docs](https://www.cryptomkt.com)[ RSS](/packages/cryptomkt-cryptomkt-guzzle-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

CryptoMarket PHP Client
=======================

[](#cryptomarket-php-client)

Official Client library \[CryptoMarket API v1\]\[1\] to integrate CryptoMarket into your PHP project, using Guzzle Http client \[Guzzle\]\[3\].

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-guzzle-php": "dev-master"
}
```

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

[](#authentication)

### API Key

[](#api-key)

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

```
use Cryptomkt\Exchange\Client;
use Cryptomkt\Exchange\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\Exchange\Client;
use Cryptomkt\Exchange\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'
);

$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

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

phpunit

```

[1]: https://developers.cryptomkt.com
[2]: https://packagist.org/packages/cryptomkt/cryptomkt
[3]: https://github.com/guzzle/guzzle

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

2897d ago

### Community

Maintainers

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

---

Top Contributors

[![aianus](https://avatars.githubusercontent.com/u/1322087?v=4)](https://github.com/aianus "aianus (34 commits)")[![sds](https://avatars.githubusercontent.com/u/677877?v=4)](https://github.com/sds "sds (14 commits)")[![jorilallo](https://avatars.githubusercontent.com/u/31465?v=4)](https://github.com/jorilallo "jorilallo (7 commits)")[![kriswallsmith](https://avatars.githubusercontent.com/u/33886?v=4)](https://github.com/kriswallsmith "kriswallsmith (7 commits)")[![jimbursch](https://avatars.githubusercontent.com/u/7603814?v=4)](https://github.com/jimbursch "jimbursch (2 commits)")[![codermarcel](https://avatars.githubusercontent.com/u/12887835?v=4)](https://github.com/codermarcel "codermarcel (2 commits)")[![floranpagliai](https://avatars.githubusercontent.com/u/2648131?v=4)](https://github.com/floranpagliai "floranpagliai (1 commits)")[![go0sedev](https://avatars.githubusercontent.com/u/7044766?v=4)](https://github.com/go0sedev "go0sedev (1 commits)")[![jborseth](https://avatars.githubusercontent.com/u/68551817?v=4)](https://github.com/jborseth "jborseth (1 commits)")[![jsgv](https://avatars.githubusercontent.com/u/2798097?v=4)](https://github.com/jsgv "jsgv (1 commits)")[![StefanYohansson](https://avatars.githubusercontent.com/u/1783252?v=4)](https://github.com/StefanYohansson "StefanYohansson (1 commits)")[![luiz-brandao](https://avatars.githubusercontent.com/u/704231?v=4)](https://github.com/luiz-brandao "luiz-brandao (1 commits)")[![noplanman](https://avatars.githubusercontent.com/u/9423417?v=4)](https://github.com/noplanman "noplanman (1 commits)")[![ppbustamante](https://avatars.githubusercontent.com/u/8334805?v=4)](https://github.com/ppbustamante "ppbustamante (1 commits)")[![renapoliveira](https://avatars.githubusercontent.com/u/771063?v=4)](https://github.com/renapoliveira "renapoliveira (1 commits)")[![chrisshennan](https://avatars.githubusercontent.com/u/1922601?v=4)](https://github.com/chrisshennan "chrisshennan (1 commits)")[![sh6khan](https://avatars.githubusercontent.com/u/6743784?v=4)](https://github.com/sh6khan "sh6khan (1 commits)")[![sofwar](https://avatars.githubusercontent.com/u/7130905?v=4)](https://github.com/sofwar "sofwar (1 commits)")[![DavidLiedle](https://avatars.githubusercontent.com/u/126598?v=4)](https://github.com/DavidLiedle "DavidLiedle (1 commits)")[![comeacoder](https://avatars.githubusercontent.com/u/1582623?v=4)](https://github.com/comeacoder "comeacoder (1 commits)")

---

Tags

phpclientlumenbitcoinethereumblockchainStellarcryptocurrenciescryptomkt

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69734.4M144](/packages/algolia-algoliasearch-client-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k371.6k6](/packages/theodo-group-llphant)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)

PHPackages © 2026

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