PHPackages                             crypto-markets/common - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. crypto-markets/common

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crypto-markets/common
=====================

Common components for cryptocurrency exchange markets.

v1.0.4(8y ago)21181MITPHPPHP &gt;=7.0

Since Feb 4Pushed 8y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (6)Versions (6)Used By (1)

Common
======

[](#common)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5ea01322c0d4090e921e88decce32dbc0be8225963804fc58a44e019590d4831/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63727970746f2d6d61726b6574732f636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crypto-markets/common)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b64940fb2bfdb2032b0321383c65c3c44e00d4c02d3efb4000f29dc778bff285/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63727970746f2d6d61726b6574732f636f6d6d6f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/crypto-markets/common)[![Quality Score](https://camo.githubusercontent.com/76e16373a064deb1d0d6caf6a98defab66ab1d673dceef1dc35a6d4ae05cc86f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63727970746f2d6d61726b6574732f636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/crypto-markets/common)[![StyleCI](https://camo.githubusercontent.com/56e62316a3afa14b2b65e7cd6d4b73f67962787afe3ebeb9a5da3221b7363b9b/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131393232323538352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/119222585)[![Total Downloads](https://camo.githubusercontent.com/b8d83cd8c2573c995ccf7f5f63e13ee9e98eca9237dfc94bfdea41eb014b9c5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63727970746f2d6d61726b6574732f636f6d6d6f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/crypto-markets/common)

Introduction
------------

[](#introduction)

We are accepting new adapters.

Documentation
-------------

[](#documentation)

The "Common" package is without a function in its own right. The package keep and manage the common functionality for other market libraries.

Let's pick a random market package to figure out how to use it. I choose the Binance package for this. You are feel free to use what you want.

```
composer require crypto-markets/binance
```

All market packages contains the same request and response to maintain consistency. Only the configuration and some parameter values may be different.

Let's start by creating a new instance:

```
use CryptoMarkets\Exchange;

$market = Exchange::create('Binance', [
    'api_key' => 'YOUR-APIKEY',
    'secret'  => 'YOUR-SECRET',
]);
```

In the above example, the Binance instance was created by configuring.

### Supported Common Methods

[](#supported-common-methods)

In this section, we will explain the supported methods that the market instance:

MethodDescriptiongetNameGet the market name.symbolsGet the supported symbols.tickerGet the latest indicators.orderBookGet a list of bids and asks in the order book (depth).tradesGet a list of the most recent trades.balancesGet the user's balance informations.buyCreate a new buy trade.sellCreate a new sell trade.statusGet the order status.cancelCancel an order.openOrdersGet the user's open orders.tradeHistoryGet the user's order histories.Testing
-------

[](#testing)

You will need an install of [Composer](https://getcomposer.org/) before continuing.

First, install the dependencies:

```
$ composer install
```

Then run PHPUnit:

```
$ vendor/bin/phpunit
```

If the test suite passes on your local machine you should be good to go.

When you make a pull request, the tests will automatically be run again by [Travis CI](https://travis-ci.org/).

We also have [StyleCI](https://styleci.io/) setup to automatically fix any code style issues.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security related issues, please create a new issue with using the "Bug" label. All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~0 days

Total

5

Last Release

3021d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8ee9725869df3b8aee7a15e9dc2361b567306d2d02a03f09ce47f7bb1ccda69?d=identicon)[mayoz](/maintainers/mayoz)

---

Top Contributors

[![mayoz](https://avatars.githubusercontent.com/u/61626?v=4)](https://github.com/mayoz "mayoz (9 commits)")[![mberberoglu](https://avatars.githubusercontent.com/u/2032318?v=4)](https://github.com/mberberoglu "mberberoglu (1 commits)")

---

Tags

commoncryptocurrencyexchangeexchangecryptocurrency

### Embed Badge

![Health badge](/badges/crypto-markets-common/health.svg)

```
[![Health](https://phpackages.com/badges/crypto-markets-common/health.svg)](https://phpackages.com/packages/crypto-markets-common)
```

###  Alternatives

[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[j0k3r/graby

Graby helps you extract article content from web pages

384349.6k2](/packages/j0k3r-graby)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[fadion/fixerio

Wrapper for Fixer.io

49337.7k](/packages/fadion-fixerio)[openbuildings/monetary

Useful tool for formatting and converting currencies

10207.6k1](/packages/openbuildings-monetary)

PHPackages © 2026

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