PHPackages                             dakshhmehta/php-tradebook - 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. dakshhmehta/php-tradebook

ActiveLibrary

dakshhmehta/php-tradebook
=========================

v2.x-dev(1y ago)036MITPHPPHP ^8.2

Since Dec 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dakshhmehta/php-tradebook)[ Packagist](https://packagist.org/packages/dakshhmehta/php-tradebook)[ RSS](/packages/dakshhmehta-php-tradebook/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

php-tradebook
=============

[](#php-tradebook)

Example

```
use Dakshhmehta\PhpTradebook\Trade;
use Dakshhmehta\PhpTradebook\TradeBook;

$tradebook = new TradeBook([
    new Trade([
        'id' => 2,
        'symbol' => 'TCS',
        'date' => '2022-09-26',
        'qty' => 5,
        'type' => 'buy',
    ]),
    new Trade([
        'id' => 1,
        'symbol' => 'TCS',
        'date' => '2022-10-24',
        'qty' => 10,
        'type' => 'buy',
    ]),
    new Trade([
        'id' => 3,
        'symbol' => 'TCS',
        'date' => '2022-09-19',
        'qty' => 5,
        'type' => 'sell',
    ]),
]);

$trades = $tradebook->getTrades();
$ledger = $tradebook->getLedger();
echo $tradebook->getHolding();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Every ~578 days

Total

2

Last Release

638d ago

Major Versions

v1.x-dev → v2.x-dev2024-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c0be01eee5813071046b208b96b28947e9c7e92ca09acb018bc5480fec2e178?d=identicon)[dakshhmehta](/maintainers/dakshhmehta)

---

Top Contributors

[![dakshhmehta](https://avatars.githubusercontent.com/u/1838017?v=4)](https://github.com/dakshhmehta "dakshhmehta (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dakshhmehta-php-tradebook/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M54](/packages/timacdonald-log-fake)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M368](/packages/laravel-zero-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)

PHPackages © 2026

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