PHPackages                             statenweb/cryptocurrency - 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. statenweb/cryptocurrency

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

statenweb/cryptocurrency
========================

Cryptocurrency Display

0.0.11(8y ago)129GPLv3PHP

Since Dec 30Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (12)Used By (0)

```
=== Cryptocurrency Portfolio Tracker ===
Contributors: matstars, statenweb
Donate link: https://statenweb.com/donate
Tags: cryptocurrency, bitcoin, litecoin, ethereum, bitcoin cash, ripple
Requires at least: 4.0
Tested up to: 4.9.5
Stable tag: 0.0.15
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Calculate and output your cryptocurrency portfolio's performance

== Description ==

Adds an admin screen to enter in your cryptocurrency purchases and then exposes a simple to use shortcode and simple API to output your cryptocurrency portfolio's performance on the frontend.

Please note that this plugin makes use of a 3rd party service to retrieve cryptocurrency prices. This means that a request is made to third party servers (coinmarketcap.com) requesting current cryptocurrency prices. See https://coinmarketcap.com/api/ for more information.

## Simple usage:

### Adding your portfolio

- Download, install and activate the plugin.
- Go to `Settings` > `Cryptocurrency`
- Populate your coin purchases and your cost bases. You can enter multiple entries for the same currency (i.e. you have bought the same currency multiple times at different cost bases).
- ???
- Profit!... or look and see how to output the table on the frontend.

### Outputting the data

#### Shortcode

`[cryptocurrency_table]`

#### PHP API

`cryptocurrency_table();`

#### Filters

For the sake of brevity, by default, the table outputs (1) the current price of each currency and does NOT output the last time the price was retrieved (see API section below), both of which can be toggled by adding the following:

Hiding the current price:

`add_filter( 'cryptocurrency/show_current_price', '__return_false’ );`

Showing the last updated:

`add_filter( 'cryptocurrency/show_last_updated', '__return_true' );`

#### API

This plugin uses the public API made available by coinmarketcap.com. It is built to cache responses for 60 seconds so as to not flood the API. The plugin injects the last updated date/time as part of the response object which can be exposed via a filter (see Filters above). Please make sure to follow their API rules. See https://coinmarketcap.com/api/ for more information.

#### Release Notes

- 0.0.15
bugfixes, analytics data

- 0.0.14
frontend updates for the shortcode (thanks /u/ZSsDesign)

- 0.0.13
update plugin title (thanks /u/you-cant-twerk)

- 0.0.12
readme fix

- 0.0.11
update readme to be more explicit that this plugin makes requests to a third party server.

- 0.0.10
update language on purchase spend field

- 0.0.9
don’t rely on composer’s autoloader, use spl’s

- 0.0.8
fix for readme.txt

- 0.0.7
adding back composer.lock
setting current price to be displayed by default

- 0.0.6
move dependencies to dev-dependencies in composer.json

- 0.0.5
remove composer.lock to stop dependency recursion

- 0.0.4
fix typo in documentation

- 0.0.3
remove title from table

- 0.0.2
adding translation template

- 0.0.1
initial release

#### Roadmap
Things I'd like to add in the future
- Ability to set and display data based on a specific currency (currently only supports USD).

- Translations, feel free to translate this into your own language, `cryptocurrency` is the text domain.

== Installation ==

This section describes how to install the plugin and get it working.

1. Upload the plugin files to the `/wp-content/plugins/cryptocurrency` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Settings->Cryptocurrency screen to add your cryptocurrency portfolio
1. Use the shortcode or API (examples for both above) to output your portfolio data
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

11

Last Release

3104d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/statenweb-cryptocurrency/health.svg)

```
[![Health](https://phpackages.com/badges/statenweb-cryptocurrency/health.svg)](https://phpackages.com/packages/statenweb-cryptocurrency)
```

###  Alternatives

[vakata/jstree

jsTree is jquery plugin, that provides interactive trees.

5.2k1.8M11](/packages/vakata-jstree)

PHPackages © 2026

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