PHPackages                             jojothebandit/blockfolio-sdk - 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. jojothebandit/blockfolio-sdk

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

jojothebandit/blockfolio-sdk
============================

Unofficial SDK for manipulation of cryptocurrency values in the blockfolio app

4142PHP

Since Aug 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jojothebandit/BlockfolioSDK)[ Packagist](https://packagist.org/packages/jojothebandit/blockfolio-sdk)[ RSS](/packages/jojothebandit-blockfolio-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Blockfolio unofficial PHP SDK
=============================

[](#blockfolio-unofficial-php-sdk)

A php wrapper around some Blockfolio requests
Now you can edit your crypto values in the app through this little SDK
DISCLAIMER: Since this is totally unofficial it can stop working at any time
I will try to keep up and fix stuff if it breaks, but I am not promising anything
How to install (Composer)
=========================

[](#how-to-install-composer)

```
composer require "jojothebandit/blockfolio-sdk":"dev-master"

```

or add to your project's composer.json

```
"require": {
    "jojothebandit/blockfolio-sdk": "~1.0"
}

```

How to use
==========

[](#how-to-use)

Find your client id in the settings part of Blockfolio
Instantiate the SDK with a client id

```
    use jojothebandit\BlockfolioSDK\BlockfolioSDK;

    $blockfolio = new BlockfolioSDK();
    $blockfolio->setClientId('YOUR_CLIENT_ID');
```

Get your whole portfolio in JSON

```
    $blockfolio->getPortfolio()
```

Get value of your portfolio(default currency is USD) ```
    $blockfolio->getPortfolioValue('USD')
```

Get quantity of coins of a specific crypto ```
    $blockfolio->getQuantity('ETH')
```

Add a "sell" transaction ```
    $blockfolio->sell(0.12, 'BTC');
```

Add a "buy" transaction ```
    $blockfolio->buy(0.67, 'ETH');
```

Add a sell transaction, with the amount being the amount you have currently in the app for a specific crypto ```
    $blockfolio->sellAll('ETH');
```

Make a trade, does two transactions, removes x of the first crypto, and adds y of the second ```
    $blockfolio->trade(5, 'LTC', 3, 'BTC'));
```

Find the exchange rate between two cryptos, mostly goes one way, BTC being the source crypto ```
    $blockfolio->getExchangeRate('BTC', 'ETH');
```

You can set the exchange with ```
    $blockfolio->setExchangeName('poloniex');
```

You can internally set the source and destination crypto ```
    $blockfolio->setSourceCrypto('BTC');
    $blockfolio->setDestinationCrypto('BCC');
```

Contribute
==========

[](#contribute)

Contributions are more than welcome :)

Questions, problems?
====================

[](#questions-problems)

I'll do my best to answer all issues

License
=======

[](#license)

[MIT License](LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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/a37b78d3ca941c071fba624350d702e1b747867e4a31c46a7ad0530528e0e09a?d=identicon)[jojothebandit](/maintainers/jojothebandit)

---

Top Contributors

[![jojothebandit](https://avatars.githubusercontent.com/u/254281?v=4)](https://github.com/jojothebandit "jojothebandit (2 commits)")

### Embed Badge

![Health badge](/badges/jojothebandit-blockfolio-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jojothebandit-blockfolio-sdk/health.svg)](https://phpackages.com/packages/jojothebandit-blockfolio-sdk)
```

PHPackages © 2026

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