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

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

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 2d 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 35% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

694d 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 (10 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.6M3.1k](/packages/craftcms-cms)[illuminate/support

The Illuminate Support package.

630113.0M41.5k](/packages/illuminate-support)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[illuminate/config

The Illuminate Config package.

10944.5M2.5k](/packages/illuminate-config)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/session

The Illuminate Session package.

9939.3M850](/packages/illuminate-session)

PHPackages © 2026

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