PHPackages                             greenmind/accounting - 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. greenmind/accounting

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

greenmind/accounting
====================

A simple double-entry accounting package for Laravel.

1.0.0(4w ago)00MITPHPPHP ^8.2

Since May 12Pushed 3w agoCompare

[ Source](https://github.com/gtcomnet-backend-103/accounting)[ Packagist](https://packagist.org/packages/greenmind/accounting)[ RSS](/packages/greenmind-accounting/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (1)Used By (0)

Laravel Accounting
==================

[](#laravel-accounting)

A simple, robust double-entry accounting package for Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require greenmind/accounting
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="accounting-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="accounting-config"
```

Usage
-----

[](#usage)

### Creating Accounts

[](#creating-accounts)

```
use Greenmind\Accounting\Models\Account;

$cash = Account::create(['name' => 'Cash', 'currency' => 'USD']);
$revenue = Account::create(['name' => 'Sales Revenue', 'currency' => 'USD']);
```

### Posting Journal Entries

[](#posting-journal-entries)

You can use the `Ledger` facade to create balanced journal entries:

```
use Greenmind\Accounting\Facades\Ledger;

$entry = Ledger::entry('Payment for Order #123')
    ->currency('USD')
    ->debit($cash->id, 100.00)
    ->credit($revenue->id, 100.00)
    ->post();
```

The `post()` method will automatically validate that the entry is balanced (debits = credits) and that all accounts exist.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

accounting
==========

[](#accounting)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance94

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

28d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfc8b13d70e309bccfa4951cb619b59fc2a4841df7c24df9695f0a20065a8ca6?d=identicon)[gtcomnet-backend-103](/maintainers/gtcomnet-backend-103)

---

Top Contributors

[![gtcomnet-backend-103](https://avatars.githubusercontent.com/u/202935635?v=4)](https://github.com/gtcomnet-backend-103 "gtcomnet-backend-103 (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/greenmind-accounting/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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