Skip to content

centrex/laravel-accounting

Repository files navigation

Manage accounts in laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.

Contents

Installation

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"

Usage

Testing

🧹 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

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.