This package to provide a simple drop-in trait to manage accruing balances for a given model. It can also be used to create double entry based projects where you would want to credit one journal and debit another.
You can install the package via composer:
composer require centrex/laravel-accounting
You can publish and run the migrations with:
php artisan vendor:publish --tag="accounting-migrations"
php artisan migrate
You can optionally publish the config file with:
php artisan vendor:publish --tag="accounting-config"
🧹 Keep a modern codebase with Pint:
composer lint
✅ Run refactors using Rector
composer refacto
⚗️ Run static analysis using PHPStan:
composer test:types
✅ Run unit tests using PEST
composer test:unit
🚀 Run the entire test suite:
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.