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

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

codaone/bitshares-php
=====================

BitShares php library

5891PHP

Since Mar 31Pushed 5y ago6 watchersCompare

[ Source](https://github.com/Codaone/bitshares-php)[ Packagist](https://packagist.org/packages/codaone/bitshares-php)[ RSS](/packages/codaone-bitshares-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

BitShares PHP Library
=====================

[](#bitshares-php-library)

Overview
--------

[](#overview)

This package allows you to read from BitShares network from selected BitShares node. Package does not contain signing operations so any operation which needs signing does not work.

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

[](#installation)

```
composer require codaone/bitshares-php

```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0

Examples
========

[](#examples)

BitShares class
---------------

[](#bitshares-class)

All methods are passed as rpc meh

```
$bitShares = new BitShares('wss://node.com');
$block = $bitShares->getBlock('40385973');
$bitShares->getChainId();
```

Getting data from named api

```
$bitShares = new BitShares('wss://node.com');
$block = $bitShares->call('history', 'method_name', ['param1', 'param2']);
```

Account
-------

[](#account)

```
$account = new Account('account-name');
$openorders = $account->getOpenOrders();
foreach($openorders as $order) {
...
}
```

Market
------

[](#market)

```
$market = new Market('BTS/USD'); // delimiter can also be : _ -
$market->getVolume24h('BTS')->getAmount();
$market->getTicker();
$market->getOrderBook(25)->getAsks();
```

Asset
-----

[](#asset)

```
$asset = new Asset('BTS');
$asset->getId(); // 1.3.0
$asset->getPrecision(); // 5
```

General
-------

[](#general)

Every class under Component namespace extends Object class which is iterable and has arrayAccess. This means that for example these are possible:

```
$market = new Market('BTS/USD');
$market->getBase()->getSymbol(); // BTS
$market['base']['symbol]; // BTS
```

```
$account = new Account('account-name');
$account->getData('owner/weight_threshold');
$account['owner']['weight_threshold'];
$account->getBalances(); // returns balances array
$account->getData('balances/0/asset_type');
$account['balances'][0]['asset_type'];
foreach($account as $key => $value) {
...
}
```

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

[](#contributing)

Feel free to open pull requests or add an issue

License
-------

[](#license)

A copy of the license is available in the repository's [LICENSE](LICENSE.txt) file.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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/2ff2baf77dcc6621b74b353f19d1a789e03115319141f0951d1851e9dd2dedbf?d=identicon)[codaone](/maintainers/codaone)

---

Top Contributors

[![juhanihaapala](https://avatars.githubusercontent.com/u/3079827?v=4)](https://github.com/juhanihaapala "juhanihaapala (5 commits)")

### Embed Badge

![Health badge](/badges/codaone-bitshares-php/health.svg)

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

###  Alternatives

[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[steverobbins/redismanager

View and flush Redis services

1394.6k](/packages/steverobbins-redismanager)[saad-tazi/g-chart-bundle

A super simple Bundle that facilitate the usage of Google Chart Tool, Google Chart Image API and Google Infographics.

20167.1k](/packages/saad-tazi-g-chart-bundle)

PHPackages © 2026

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